مشاركة عبر


Breakpoint.DTE الخاصية

إحضار كائن القابلية للتوسعة من المستوى الأعلى.

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

بناء الجملة

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

قيمة الخاصية

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

ملاحظات

في ‏‫Visual Studio , يكون الكائن DTE هو جذر طراز التنفيذ التلقائي التي طرازات الكائن الأخرى غالباً من تقوم باستدعاء "تطبيق".

أمثلة

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

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

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

  2. تشغيل إضافة-في.

public static void DTE(DTE dte)
{
    // Setup 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("DTE Property Test: ");
    owp.Activate();

    // dte is a reference to the DTE object passed to you by the
    // OnConnection method that you implement when you create an add-in.
    DTE DTEProp = dte.Debugger.Breakpoints.Item(1).DTE ;
    owp.OutputString("Edition of the environment: " + DTEProp.Edition);
}
' Set a breakpoint in the target application. Run the application in the 
' debug mode.When the program stops at the breakpoint, run the add-in. 
Shared Sub DTEProperty(ByRef dte As EnvDTE.DTE)
    Dim DTEProp As DTE
    DTEProp = dte.Debugger.Breakpoints.Item(1).DTE
    MessageBox.Show("Edition of the environment: " + DTEProp.Edition)
End Sub

أمن NET Framework.

راجع أيضًَا

المرجع

Breakpoint واجهة

Breakpoint الأعضاء

EnvDTE مساحة الاسم

موارد أخرى

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