Partager via


Processes.Parent Property

Definition

Gets the immediate parent object of a Processes collection.

public:
 property EnvDTE::Debugger ^ Parent { EnvDTE::Debugger ^ get(); };
public:
 property EnvDTE::Debugger ^ Parent { EnvDTE::Debugger ^ get(); };
[System.Runtime.InteropServices.DispId(2)]
public EnvDTE.Debugger Parent { [System.Runtime.InteropServices.DispId(2)] get; }
[<System.Runtime.InteropServices.DispId(2)>]
[<get: System.Runtime.InteropServices.DispId(2)>]
member this.Parent : EnvDTE.Debugger
Public ReadOnly Property Parent As Debugger

Property Value

A Debugger object.

Attributes

Examples

The following example demonstrates how to use the Parent property.

public static void Parent(DTE dte)  
{  
    EnvDTE.Processes processes = dte.Debugger.LocalProcesses;  
    MessageBox.Show("\nThe name of the current program: " +   
                    processes.Parent.CurrentProgram.Name,   
                    "Testing Processes Parent Property");  
}  
Shared Sub Parent(ByRef dte As EnvDTE.DTE)  
    Dim processes As EnvDTE.Processes = dte.Debugger.LocalProcesses  
    MessageBox.Show("The name of the current program: " + _  
                    processes.Parent.CurrentProgram.Name, _  
                    "Processes Test - Parent Property")  
End Sub  

Applies to