Aracılığıyla paylaş


Breakpoint2.DTE Özellik

Üst düzey bir geniþletilebilirlik nesnesi alır.

Ad alanı:  EnvDTE80
Derleme:  EnvDTE80 (EnvDTE80.dll içinde)

Sözdizimi

'Bildirim
ReadOnly Property DTE As DTE
    Get
DTE DTE { get; }
property DTE^ DTE {
    DTE^ get ();
}
abstract DTE : DTE
function get DTE () : DTE

Özellik Değeri

Tür: EnvDTE.DTE
DTE nesnesi

Yüklenen

Breakpoint.DTE

Açıklamalar

Visual Studio, DTE nesnedir, diğer modelleri nesnesi Otomasyon modeli kök genellikle "Uygulama" çağrısı.

Örnekler

Aşağıdaki örnek, dte özelliğinin kullanımı gösterilmiştir.

Bu özellik test etmek için:

  1. Bir kesme noktası hedef uygulamada ayarlayın.

  2. Eklentiyi çalıştırın.

public static void DTE(EnvDTE80.DTE2 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: ");
    owp.Activate();

    //dte is a reference to the DTE2 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);
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

Breakpoint2 Arabirim

DTE Fazla Yük

EnvDTE80 Ad Alanı

Diğer Kaynaklar

Nasıl Yapılır: derlemek ve otomasyon nesne modeli kod örnekleri çalıştırma