HTMLWindow.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
public void CodeExample(DTE2 dte)
{
// Make sure you have an open HTML document before running this example
try
{
if (dte.ActiveDocument.ActiveWindow.Object is HTMLWindow)
{
HTMLWindow htmlwin;
string msg = "";
htmlwin = dte.ActiveDocument.ActiveWindow.Object as HTMLWindow;
// Show the related application object's name.
msg += "The application containing this HTMLWindow is " + htmlwin.DTE.Name;
// Show the HTMLWindow's parent object.
msg += "\nThe HTMLWindow's parent object is " + htmlwin.Parent.Type.ToString();
MessageBox.Show(msg);
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Açıklamalar
' De Visual Studio , DTE nesnesi, diğer nesne modellerinin genellikle "uygulama" çağrısını yaparken otomasyon modelinin köküdür.