_DTE 인터페이스

업데이트: 2007년 11월

Visual Studio 자동화 개체 모델의 최상위 개체입니다. 이 기능에 대해서는 _DTE를 참조하십시오. 이 클래스에서 인스턴스화할 수 없습니다.

네임스페이스:  EnvDTE
어셈블리:  EnvDTE(EnvDTE.dll)

구문

<GuidAttribute("04A72314-32E9-48E2-9B87-A63603454F3E")> _
Public Interface _DTE

Dim instance As _DTE
[GuidAttribute("04A72314-32E9-48E2-9B87-A63603454F3E")]
public interface _DTE
[GuidAttribute(L"04A72314-32E9-48E2-9B87-A63603454F3E")]
public interface class _DTE
public interface _DTE

설명

_DTE 개체는 추가 기능을 만들 때 구현하는 OnConnection 메서드에서 제공합니다. _DTE 개체는 Visual Basic에서 Application 개체입니다.

VBProjects 또는 CSharpProjects와 같이 프로젝트별 속성에 액세스하려면 DTE.GetObject("VBProjects") 구문을 사용합니다.

EnvDTE 네임스페이스 및 _DTE 개체를 참조하는 데 대한 자세한 내용은 방법: 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 네임스페이스

기타 리소스

자동화 어셈블리 및 DTE2 개체 참조