Compartir a través de


Processes.Item(Object) Method

Definition

Returns an indexed member of a Processes collection.

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

Parameters

index
Object

Required. The index of the item to return.

Returns

A Process object.

Attributes

Examples

The following example demonstrates how to use the Item method.

public static void Item(DTE dte)  
{  
    EnvDTE.Processes processes = dte.Debugger.DebuggedProcesses;  
    processes.Item(1).Break(true);  
}  
Shared Sub Item(ByRef dte As EnvDTE.DTE)  
    Dim processes As EnvDTE.Processes = dte.Debugger.DebuggedProcesses  
    processes.Item(1).Break(True)  
End Sub  

Remarks

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

Applies to