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
index
Type: System.ObjectRequired. The index of the ContextAttribute object to return.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples