WriteVersion
Purpose
WriteVersion writes out a CMetaObject to the repository. Unlike WriteObject, WriteVersion always overwrites the current version of the object, that is, a new version of an existing object is not created. In all other aspects of functionality, WriteVersion is identical to WriteObject.
Requirements
If the object does not exist in the repository, a Class ID attribute is required to be set (internal or globally unique). All class properties of type SQL_DATE must also be set. The internal ObjectID set to zero indicates that this object is to be created in the repository. When the internal ObjectID is not zero, it must be for a version of the object.
Syntax
HRESULT WriteVersion(void);