Share via


Solution2.ExtenderNames 속성

개체에 대해 사용할 수 있는 Extender의 목록을 가져옵니다.

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

구문

‘선언
ReadOnly Property ExtenderNames As Object
Object ExtenderNames { get; }
property Object^ ExtenderNames {
    Object^ get ();
}
abstract ExtenderNames : Object with get
function get ExtenderNames () : Object

속성 값

형식: Object
자동화 규격 문자열 배열이 포함된 개체입니다.

설명

ExtenderNames는 ExtenderCATID 속성으로 지정된 CATID를 사용하여 이 개체에 현재 적용할 수 있는 Extender의 이름을 반환합니다.

예제

이 추가 기능 코드를 실행하는 방법에 대한 내용은 방법: 자동화 개체 모델 코드의 예제 컴파일 및 실행을 참조하십시오.

다음 예제에서는 열린 솔루션의 경우 extender를 표시하는 방법을 보여 줍니다.

Sub ExtenderNamesExample(ByVal dte As DTE2)

    Dim names() As String = CType(dte.Solution.ExtenderNames, String())
    Dim exts, name As String
    For Each name In names
        exts &= name & vbCrLf
    Next

    MsgBox(dte.Solution.FullName & " has the following extenders:" & _
        vbCrLf & vbCrLf & exts)

End Sub
//you will need to add this reference to your project as well
using System.Windows.Forms;
public void ExtenderNamesExample(DTE2 dte)
{
    string[] names = (string[])dte.Solution.ExtenderNames;
    string exts = "";
    foreach (string name in names)
    {
        exts += name + Environment.NewLine;
    }

    MessageBox.Show(dte.Solution.FullName + 
        " has the following extenders:" + Environment.NewLine + 
        Environment.NewLine + exts);
}

.NET Framework 보안

참고 항목

참조

Solution2 인터페이스

EnvDTE80 네임스페이스

기타 리소스

방법: 자동화 개체 모델 코드의 예제 컴파일 및 실행

Automation Extenders 구현 및 사용