DTE الواجهة

كائن المستوى الأعلى في طراز كائن Automation لبرنامج ‏‫Visual Studio. استخدم هذا كائن للوظيفة والرجوع إلى _DTEهذا كائن الوثائق.

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

بناء الجملة

'إقرار
<GuidAttribute("04A72314-32E9-48E2-9B87-A63603454F3E")> _
Public Interface DTE _
    Inherits _DTE
[GuidAttribute("04A72314-32E9-48E2-9B87-A63603454F3E")]
public interface DTE : _DTE
[GuidAttribute(L"04A72314-32E9-48E2-9B87-A63603454F3E")]
public interface class DTE : _DTE
[<GuidAttribute("04A72314-32E9-48E2-9B87-A63603454F3E")>]
type DTE =  
    interface
        interface _DTE
    end
public interface DTE extends _DTE

ملاحظات

DTEالكائن هو الموفرة من قبل OnConnectionالطريقة التي يتم بها تنفيذ عندما تقوم بإنشاء بوصة إضافة DTEكائن هو Applicationكائن في Visual أساسى.

للوصول إلى المشروع الخصائص الخاصة مثل كـ VBProjectsأو CSharpProjects، استخدم بناء الجملة DTE.GetObject("VBProjects").

للحصول على التفاصيل حول الرجوع إلى EnvDTEمساحة الاسم و DTEكائن، راجع التجميعات التنفيذ التلقائي المرجعي وكائن DTE2.

أمثلة

Sub DTEExample()
    Dim objTextDoc As TextDocument
    Dim objEP As EditPoint
    
    ' Create a new text document.
    DTE.ItemOperations.NewFile("General\Text File")
    ' Get a handle to the new document.
    Set objTextDoc = DTE.ActiveDocument.Object("TextDocument")
    Set objEP = objTextDoc.StartPoint.CreateEditPoint
    ' Create an EditPoint and add some text.
    objEP.Insert "A test sentence."
End Sub

راجع أيضًَا

المرجع

DTE الأعضاء

EnvDTE مساحة الاسم