RepositoryObjectVersion CreateVersion Method

See Also

This method creates a new version of the Repository object, based on the current version.

Syntax

set variable = object.CreateVersion(versionID)

The Refresh method syntax has the following parts.

Part Description
Variable An object expression that evaluates to a RepositoryObjectVersion object; receives a reference to the newly created object version.
Object An object expression that evaluates to a RepositoryObjectVersion object.
VersionID The value you want the repository to use as an object-version identifier for the newly created object version. If you want the repository to choose a value for you, set this parameter to EXT_VERSIONID_NULL.

Remarks

The current object version must be frozen.

Repository creates the new version as unfrozen. Its property values are identical to the property values of the current object version.

For each of the predecessor version's origin relationship collections, Repository takes this action:

You cannot invoke this method while operating in a workspace.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.