Debugger.Parent Property
Gets the immediate parent object of a Debugger object.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property Parent As DTE
'Usage
Dim instance As Debugger
Dim value As DTE
value = instance.Parent
DTE Parent { get; }
property DTE^ Parent {
DTE^ get ();
}
function get Parent () : DTE
Property Value
Type: EnvDTE.DTE
A DTE object.
Remarks
The Parent property returns the immediate parent to the object.
Examples
The following example demonstrates how to use the Parent property.
To test this property:
- Open the target project and run the add-in.
public static void Parent(DTE dte)
{
// Setup the debug Output window.
Window w = (Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
w.Visible = true;
OutputWindow ow = (OutputWindow)w.Object;
OutputWindowPane owp = ow.OutputWindowPanes.Add("Parent Property Test");
owp.Activate();
EnvDTE.Debugger debugger = dte.Debugger;
owp.OutputString("The name of the debugger parent: " + debugger.Parent.Name);
}
Shared Sub ParentProperty(ByRef dte As EnvDTE.DTE)
MessageBox.Show("The name of the debugger parent: " + dte.Debugger.Parent.Name, _
"Debugger Test - Parent Property Test")
End Sub
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples