This method creates a new property definition and attaches it to the interface definition.
HRESULT CreatePropertyDef (
VARIANT sObjId,
BSTR Name,
long iDispId,
short iCType,
IPropertyDef **ppIPropertyDef
);
Parameters
sObjId
[in]
The object identifier to be used for the new property 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 property.
iDispId
[in]
The dispatch identifier to be used for accessing the new property.
iCType [in]
The C data type of the property. For a definition of valid values, see the ODBC Programmer's Reference.
*ppIPropertyDef [out]
The interface pointer for the newly created property definition.
Return Value
S_OK
The method completed successfully.
Error
This method failed to complete successfully.