InterfaceDef Properties Collection

See Also

A Properties collection contains all of the persistent properties and collections that are attached to an object through a particular interface. The InterfaceDef object exposes four separate Properties collections. These collections are exposed by:

  1. The IInterfaceDef interface (the default).

  2. The IReposTypeInfo interface.

  3. The IRepositoryObject interface.

  4. The IAnnotationalProps interface.

Syntax

Set variable  =  object.Properties(index)

The Properties collection syntax has the following parts.

Part Description
variable A variable declared as a ReposProperty object. Receives the specified property.
object An object expression; evaluates to an object that exposes:
  • IInterfaceDef

  • IReposTypeInfo

  • IRepositoryObject

    -or-

  • IAnnotationalProps

as the default interface.

index An integer index that identifies which property 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.Properties.Count.

Remarks

For details on how to access a member of an interface that is not the default interface, see Accessing Automation Object Members.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.