This documentation is archived and is not being maintained.

ContextAttributes.Item Method

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

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

ContextAttribute Item (
	Object index
ContextAttribute Item (
	Object index
function Item (
	index : Object
) : ContextAttribute



Return Value

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.