Compartilhar via


AddIns.Item(Object) Method

Definition

Returns an AddIn object in an AddIns collection.

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

Parameters

index
Object

Required. The index of the AddIn object to return.

Returns

A AddIn object.

Attributes

Remarks

Add-ins are now deprecated. For more information, see FAQ: Converting Add-ins to VSPackage Extensions.

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

Applies to