| Connection Methods | 
The Connection type exposes the following members.
 Methods
Methods| Name | Description | |
|---|---|---|
|  | AddHybridPart | 
 Adds an empty hybrid part to a document.
  | 
|  | AssignRoles | 
 Adds user role assignments to a folder
  | 
|  | CallVBScript | 
 Makes a call to a VBScript function
  | 
|  | ChangeDocumentType | 
 Changes the document type of a document.
  | 
|  | ChangeFolderType | 
 Changes the folder type of a folder.
  | 
|  | CheckinDocument | 
 Transitions a document from the Under Change state to the Released state.
  | 
|  | CheckoutDocument | 
 Transitions the document to a state where it can be edited, either a QuickChange or UnderChange in workflow depending
 on the optional quickchange parameter
  | 
|  | CreateNewDocument | 
 Creates a new document in the vault and optionally sets its properties.
  | 
|  | CreateNewFolder | 
 Makes sure the folder does exist in the vault and optionally updates its properties
  | 
|  | CreateReference | 
 Creates a document reference between two documents inside the vault according to a defined reference
 type. The destination document cannot be a new (unreleased) document unless the source document is new.
  | 
|  | DeleteDocument | 
 Deletes a document
  | 
|  | DeleteFolder | 
 Deletes a folder
  | 
|  | DeleteReference | 
 Removes a document reference between two documents inside the vault according to a defined
 reference type. Only one reference is deleted if the documents have been referenced multiple times using
 the same reference type.
  | 
|  | DetachHybridPart | 
 Detaches a hybrid part and turns it into a new individual document. The return value is the document ID
 of the newly created document that was the hybrid part. The document will be in the Under Change state.
  | 
|  | DocumentExists | 
 Check if a document exists in the vault
  | 
|  | EnumHybridParts | 
 Enumerates all the hybrid parts of a document. The return value is a string array of the names of all the
 hybrid parts. The variant will be empty if no hybrid parts can be found.
  | 
|  | FindDocuments | 
 Searches for documents inside the vault. Returns a variant array of document identifiers matching the
 find parameters.
  | 
|  | FolderExists | 
 Check if a folder exists in the vault
  | 
|  | GetAllPropertyNames | 
 Return an array of all property names of that document or folder as determined by the document or folder type.
  | 
|  | GetDocumentID | 
 Returns the document identifier (docid) of a document given the vault identifier and the full path of the
 document inside the vault.
  | 
|  | GetDocumentInformation | 
 Returns a variant array of values for the specified properties.
  | 
|  | GetDocumentLocation | 
 Returns a full path in UNC format or the relative path within the vault that can be used by any Windows
 application to read from or write to a document.
 The document needs to be in the Under Change state for it to be writable.
  | 
|  | GetDocumentVersionInformation | 
 Returns a variant array of values for the specified properties for a given document version.
  | 
|  | GetDocumentVersionLocation | 
 Returns a full path in UNC format or the relative path within the vault that can be used by any Windows
 application to read the contents of the version of the document.
  | 
|  | GetDocumentVersions | 
 Returns a variant array of version IDs for the specified document.
  | 
|  | GetFolderElements | 
 Enumerate folder elements
  | 
|  | GetFolderID | 
 Returns the unique identifier of a folder given the vault identifier and the full path of the
 folder inside the vault.
  | 
|  | GetFolderInformation | 
 Returns a variant array of values for the specified properties.
  | 
|  | GetFolderNames | 
 Returns a variant array of all subfolders names that are located under the specified folder path.
  | 
|  | GetHybridPartLocation | 
 Returns a full path of a hybrid part in UNC format that can be passed to any Windows application.
  | 
|  | GetReferences | 
 Returns a variant array of object IDs for all references of a document according to a defined reference type.
  | 
|  | GetRoleAssignments | 
 Get role assignments from the specified folder
  | 
|  | GetUniqueValues | 
 Collect a set of unique non-empty values for a given custom property on a given set of documents.
  | 
|  | GetVaultName | 
 Returns the display name of the vault. The method returns an error when a null string (“”) is passed and
 no vault has been opened before.
  | 
|  | GetVersion | |
|  | InvokeEDMUICommand | 
 Ask EdmUI to execute a certain command on the document
  | 
|  | IsDocumentCheckedOut | 
 Returns True if the document is under change.
  | 
|  | IsUniqueValue | 
 Check if the specified value is unique for the specified property
  | 
|  | MigrateDocument | 
 Converts a document currently in document type workflow to a state in a workflow definition. This
 method is only supported when Work Isolation Mode is turned off and the document itself is not
 released. It can also be used to make a transition (reroute) from one state to another within the same
 workflow definition and to make a transition to the Released state either by revoking the workflow (if it is in the
 beginning state) or by releasing the document if it is in an end state.
  | 
|  | ResetRoleAssignments | 
 Remove all role assignment from the folder and set the flag Inherit from parent
  | 
|  | ShowWizard | 
 Shows wizard pages for the document
  | 
|  | SynchronizeLocalWorkspace | 
 Performs synchronization of the document in local workspace
  | 
|  | SynchronizePropertiesFromFile | 
 Performs a titleblock update in which the properties of the document are updated with the titleblock
 information of the document itself.
  | 
|  | SynchronizePropertiesToFile | 
 Performs a titleblock update where the titleblock of the document is updated with the property information
 of the document stored in the vault.
  | 
|  | UndoCheckoutDocument | 
 Revokes the working copy of a document and does a transition of the document from the Under Change state
 back to its latest Released state.
  | 
|  | UpdateDocument | 
 Updates the properties and/or content information of a document.
  | 
|  | UpdateHybridPart | 
 Updates the contents of a hybrid part.
  | 
 See Also
See Also