ContextAttributes.Item Method (Object)

 

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

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

ContextAttribute Item(
	object index
)

Parameters

index
Type: System.Object

Required. The index of the ContextAttribute object to return.

Return Value

Type: EnvDTE.ContextAttribute

A ContextAttribute object.

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.

Return to top
Show: