Use this property to obtain a view of the repository workspace that uses an alternate interface as the default interface. This is a read-only property. There are three variations of this property.
Set variable = object.Interface(interfaceId)
Set variable = object.Interface(objectId)
Set variable = object.Interface(interfaceName)
The Interface property syntax has the following parts.
Part | Description |
Variable | An object variable. Receives the workspace with the specified interface as the default interface. |
Object | An object expression that evaluates to a Workspace object. |
InterfaceId | The interface identifier for the interface to be retrieved. |
ObjectId | The object identifier for the interface definition to which the interface to be retrieved conforms. |
InterfaceName | A string containing the name of the interface to be retrieved. |
This member is exposed by the IRepositoryObjectVersion interface, a non-default interface for this object. For details on how to access a member of an interface that is not the default interface, see Accessing Automation Object Members.