Threads.Parent Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l'objet parent immédiat d'une collection Threads.
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
Valeur de propriété
Objet Debugger.
- Attributs
Exemples
L’exemple suivant montre comment utiliser la Parent propriété.
public static void ThreadsParent(DTE dte)
{
EnvDTE.Threads threads = dte.Debugger.CurrentProgram.Threads;
MessageBox.Show("\nThe name of the current program: " +
threads.Parent.CurrentProgram.Name, "Testing Threads Parent Property");
}
Shared Sub ThreadsParent(ByRef dte As EnvDTE.DTE)
Dim threads As EnvDTE.Threads = dte.Debugger.CurrentProgram.Threads
MessageBox.Show("The name of the current program: " + _
threads.Parent.CurrentProgram.Name, _
"Threads Test - Parent Property")
End Sub