Meta Data Services Programming

RepositoryObjectVersion FreezeVersion Method

This method freezes the current RepositoryObjectVersion object.

Syntax

Call object.FreezeVersion

The FreezeVersion method syntax has the following part.

Part Description
object An object expression that evaluates to a RepositoryObjectVersion object

Remarks

To freeze an object version, the object version must be unfrozen. You can only freeze an object version that is contained by a shared repository. You cannot freeze an object version that is checked out to a workspace.

Freezing an object version prevents changes to property values, collection attributes, and versioned relationships. Specifically, you cannot resize or resequence origin collections. Furthermore, you cannot change the versioned relationships of origin collections. That is, you cannot enlarge or shrink a TargetVersions collection of an origin versioned relationship; and you cannot pin or unpin a target object version. However, you can change the name by which the origin object version refers to the target object.

Note  Annotational properties are an exception. You can modify the annotational properties of a frozen object version.

The FreezeVersion method fails in the following conditions:

See Also

RepositoryObjectVersion Object

RepositoryObjectVersion IsFrozen Property

Workspace CheckIn Method