This method creates a new repository object of the specified type.
Set variable = object.CreateObject(typeId, objectId)
The CreateObject method syntax has the following parts.
Part | Description |
Variable | Declared as a RepositoryObject. Receives the new repository object. |
Object | The object that represents the workspace through which this program is interacting with the repository. |
TypeId | The type of the new object; that is, the object identifier of the object definition to which the new object conforms. |
ObjectId | The object identifier to be assigned to the new object. Either pass in ObjID_NULL or do not supply this optional parameter to have the Microsoft® Repository engine assign an object identifier for you. |