Udostępnij za pośrednictwem


ContextAttributes.Item(Object) Method

Definition

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

public:
 EnvDTE::ContextAttribute ^ Item(System::Object ^ index);
public:
 EnvDTE::ContextAttribute ^ Item(Platform::Object ^ index);
EnvDTE::ContextAttribute Item(winrt::Windows::Foundation::IInspectable const & index);
[System.Runtime.InteropServices.DispId(0)]
public EnvDTE.ContextAttribute Item (object index);
[<System.Runtime.InteropServices.DispId(0)>]
abstract member Item : obj -> EnvDTE.ContextAttribute
Public Function Item (index As Object) As ContextAttribute

Parameters

index
Object

Required. The index of the ContextAttribute object to return.

Returns

A ContextAttribute object.

Attributes

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.

Applies to