ReposTypeLib CreateClassDef Method

Meta Data Services Programming

Meta Data Services Programming

ReposTypeLib CreateClassDef Method

This method creates a new class definition object. No interfaces are attached to the class. After you create a class definition object, you can define it using the ClassDef object.

Syntax

Set variable  =  object.CreateClassDef(sObjId, Name, sClsId)

The CreateClassDef method syntax has the following parts.

Part Description
variable A variable declared as a ClassDef object. It receives the new class definition.
object An object expression that evaluates to a ReposTypeLib object.
sObjId The object identifier to be used for the new class definition object. The repository engine will assign an object identifier if you set this parameter to OBJID_NULL.
Name The name of the new class.
sClsId The global identifier by which this class is referenced.

See Also

ClassDef Object

Object Identifiers and Internal Identifiers

ReposTypeLib Object