Partager via


Programs.Item(Object) Method

Definition

Returns a Program object in a Programs collection.

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

Parameters

index
Object

Required. The index of the Program object to return.

Returns

A Program object.

Attributes

Remarks

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

Applies to