ToolWindows.DTE Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Üst düzey genişletilebilirlik nesnesini alır.
public:
property EnvDTE::DTE ^ DTE { EnvDTE::DTE ^ get(); };
public:
property EnvDTE::DTE ^ DTE { EnvDTE::DTE ^ get(); };
[System.Runtime.InteropServices.DispId(1)]
public EnvDTE.DTE DTE { [System.Runtime.InteropServices.DispId(1)] get; }
[<System.Runtime.InteropServices.DispId(1)>]
[<get: System.Runtime.InteropServices.DispId(1)>]
member this.DTE : EnvDTE.DTE
Public ReadOnly Property DTE As DTE
Özellik Değeri
Bir DTE nesnesi.
- Öznitelikler
Örnekler
Bu örnek DTE , nesne aracılığıyla üst nesneye nasıl ulaşılanacağını gösterir TollWindows .
Imports EnvDTE
Imports EnvDTE80
Public Sub CommandWindowManip(ByVal dte As DTE2)
Dim myCmd As CommandWindow
myCmd = _applicationObject.ToolWindows.CommandWindow
MsgBox("The command count, obtained through the parent DTE object _
, is : " & myCmd.DTE.Commands.Count)
End Sub
using EnvDTE;
using EnvDTE80;
using System.Windows.Forms;
public void CommandWindowManip (DTE2 dte)
{
CommandWindow myCmd;
myCmd = _applicationObject.ToolWindows.CommandWindow;
MessageBox.Show("The command count, obtained through the parent
DTE object, is : " + myCmd.DTE.Commands.Count);
}
Açıklamalar
' De Visual Studio , DTE nesnesi, diğer nesne modellerinin genellikle "uygulama" çağrısını yaparken otomasyon modelinin köküdür.