For a particular property definition, the Interface collection specifies which interface exposes a member of this type.
This collection is not attached to the default interface for the PropertyDef Automation object; it is attached to the IInterfaceMember interface. For details on how to access a member of an interface that is not the default interface, see Accessing Automation Object Members.
Collection descriptor | Descriptor value |
Relationship Type | Interface-Has-Members |
Source Is Origin | No |
Minimum Collection Size | One |
Maximum Collection Size | One |
Sequenced Collection | Yes |
Deletes Propagated | Yes |
Destinations Named | Yes |
Case Sensitive Names | No |
Unique Names | Yes |
Set variable = object.Interface( index )
The Interface collection syntax has the following parts.
Part | Description |
variable | A variable declared as an InterfaceDef object. Receives the specified interface definition. |
object | An object expression; evaluates to an object that implements IInterfaceMember as the default interface. |
index | An integer index that identifies which element in the collection is to be addressed. The valid range is from one to the number of elements in the collection. The number of elements in the collection is specified by object.Interface.Count. |