共用方式為


_Solution.ExtenderNames 屬性

取得物件的可用擴充項清單。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
ReadOnly Property ExtenderNames As Object
Object ExtenderNames { get; }
property Object^ ExtenderNames {
    Object^ get ();
}
abstract ExtenderNames : Object with get
function get ExtenderNames () : Object

屬性值

類型:Object
包含相容於 Automation 之字串陣列的物件。

備註

使用 ExtenderCATID 屬性指定的 CATID,即可傳回目前這個物件適用的擴充項名稱。

範例

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
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 安全性

請參閱

參考

_Solution 介面

EnvDTE 命名空間

其他資源

如何:編譯和執行 Automation 物件模型程式碼範例

實作及使用 Automation 擴充項