Proprietà _Solution.ExtenderNames

Ottiene un elenco degli extender disponibili per l'oggetto.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

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

Valore proprietà

Tipo: System.Object
Un oggetto contenente una matrice compatibile con l'automazione di stringhe.

Note

Restituisce i nomi delle estensioni attualmente applicabili a questo oggetto tramite il CATID come specificato dal ExtenderCATID proprietà.

Esempi

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);
}

Sicurezza di .NET Framework

Vedere anche

Riferimenti

_Solution Interfaccia

Spazio dei nomi EnvDTE

Altre risorse

Procedura: compilare ed eseguire gli esempi di codice del modello a oggetti di automazione

Implementazione e utilizzo delle estensioni di automazione