مشاركة عبر


StackFrames.Parent الخاصية

يحصل على الأصل الفوري كائن من StackFramesمجموعة.

مساحة الاسم:  EnvDTE
التجميع:  EnvDTE (في EnvDTE.dll)

بناء الجملة

'إقرار
ReadOnly Property Parent As Debugger
    Get
Debugger Parent { get; }
property Debugger^ Parent {
    Debugger^ get ();
}
abstract Parent : Debugger
function get Parent () : Debugger

قيمة الخاصية

النوع: EnvDTE.Debugger
كائن Debugger .

أمثلة

يوضح المثال التالي كيفية إلى تستخدم في Parentخاصية.

إلى اختبار هذه خاصية:

  1. قم بتعيين نقطة توقف في تطبيق الهدف.

  2. قم بتشغيل تطبيق الهدف في الوضع التصحيح.

  3. عند إيقاف تشغيل تطبيق على نقطة الإيقاف، قم بتشغيل الوظيفة الإضافية.

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

أمن NET Framework.

راجع أيضًَا

المرجع

StackFrames واجهة

StackFrames الأعضاء

EnvDTE مساحة الاسم

موارد أخرى

كيفية: الترجمة وإعادة تشغيل أمثلة التعليمات البرمجية لطراز كائن التنفيذ التلقائي