StackFrames.Parent 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取集合的直接父对象 StackFrames 。
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
属性值
Debugger 对象。
- 属性
示例
下面的示例演示如何使用 Parent 属性。
public static void StackFramesParent(DTE dte)
{
EnvDTE.StackFrames stackFrames = dte.Debugger.CurrentThread.StackFrames;
MessageBox.Show("\nThe name of the current program: " +
stackFrames.Parent.CurrentProgram.Name,
"Stack Frames Parent Property Test");
}
Shared Sub StackFramesParent(ByRef dte As EnvDTE.DTE)
Dim stackFrames As EnvDTE.StackFrames = dte.Debugger.CurrentThread.StackFrames
MessageBox.Show("The name of the current program: " + _
stackFrames.Parent.CurrentProgram.Name, _
"Stack Frame Test - Parent Property")
End Sub