Share via


SolutionContexts.Item(Object) Method

Definition

Returns a SolutionContext object in a SolutionContexts collection.

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

Parameters

index
Object

Returns

A SolutionContext object.

Attributes

Remarks

The value passed to Index is either an integer that is an index to a SolutionContext object in its SolutionContexts collection or a string that is the name of a SolutionContext object.

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

Applies to