IReposTypeLib::CreateClassDef

Meta Data Services Programming

Meta Data Services Programming

IReposTypeLib::CreateClassDef

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 Values

This method failed to complete successfully.

See Also

IClassDef Interface

IReposTypeLib Interface