Repository CreateObject Method

See Also

This method creates a new Repository object of the specified type.

Syntax

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 open Repository instance 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 Repository assign an object identifier for you.

Remarks

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