InterfaceDef CreatePropertyDef Method

See Also

This method creates a new property definition and attaches it to the interface definition.

Syntax

Set variable = object.CreatePropertyDef( sObjId, name, dispId, CType )

The CreatePropertyDef method syntax has the following parts.

Part Description
object An object expression that evaluates to an InterfaceDef object.
variable A variable declared as a PropertyDef object. Receives the new property definition.
sObjId 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 The name of the new property.
dispId The dispatch identifier to be used for accessing the new property.
CType The C data type of the property. For a definition of valid values, see the ODBC Programmer's Reference.