Threads.Parent Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the immediate parent object of a Threads 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 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