IInterfaceDef::CreatePropertyDef

Meta Data Services Programming

Meta Data Services Programming

IInterfaceDef::CreatePropertyDef

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
);

Parts

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 more information, including a definition of valid values, see the ODBC documentation.

*ppIPropertyDef [out]

The interface pointer for the newly created property definition.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

See Also

IInterfaceDef Interface

IPropertyDef Interface