This method creates a new class definition object. No interfaces are attached to the class.
HRESULT CreateClassDef(
VARIANT sObjId,
BSTR Name,
VARIANT sClsId,
IClassDef **ppIClassDef
);
Parameters
sObjId
[in]
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
[in]
The name of the new class.
sClsId
[in]
The global identifier by which this class is referenced.
*ppIClassDef [out]
The interface pointer to the new class definition object.
Return Value
S_OK
The method completed successfully.
Error
This method failed to complete successfully.