Managing Document Versions

You can manage document versions using scripts.

To freeze and unfreeze a document version:

Use the following

Description

Freeze(ByVal Comment As String = "") As Boolean

Method on RepositoryDocumentBase that allows you to create an archived version of a document

Unfreeze() As Boolean

Method on RepositoryDocumentBase that allows you to modify the current version in the repository to reflect changes performed on your local machine

Example:

MyDocument.Freeze "Update required"
MyDocument.Unfreeze

To lock and unlock a document version:

Use the following

Description

Lock(ByVal Comment As String = "") As Boolean

Method on RepositoryDocumentBase that allows you to prevent other users from updating the consolidated version

Unlock() As Boolean

Method on RepositoryDocumentBase that allows other users to update the consolidated version

Example:

MyDocument.Lock "Protection required"
MyDocument.Unlock

To delete a document version:

Use the following

Description

DeleteVersion() As Boolean

Method on RepositoryDocumentBase that allows you to delete a document version

Example:

MyDocument.Delete