ContextAttributes.Item Method

Returns a ContextAttribute object that is an item of the ContextAttributes collection.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Function Item ( _
    index As Object _
) As ContextAttribute
ContextAttribute Item(
    Object index
)
ContextAttribute^ Item(
    Object^ index
)
abstract Item : 
        index:Object -> ContextAttribute
function Item(
    index : Object
) : ContextAttribute

Parameters

Return Value

Type: EnvDTE.ContextAttribute
A ContextAttribute object.

Remarks

The value passed to index is an integer that is either an index to a ContextAttribute object in its ContextAttributes collection or a string value that equates to the name of a ContextAttribute in the collection.

The Item method throws a ArgumentException exception if the collection cannot find the object that corresponds to the index value.

.NET Framework Security

See Also

Reference

ContextAttributes Interface

EnvDTE Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples