Proprietà Solution3.ExtenderNames

Ottiene un elenco degli oggetti Extender disponibili per l'oggetto.

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

Sintassi

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

Valore proprietà

Tipo: System.Object
Oggetto contenente una matrice di stringhe conformeall'automazione.

Implementa

Solution2.ExtenderNames

Note

ExtenderNames restituisce i nomi di Extender applicabili per l'oggetto utilizzando il CATID come specificato dalla proprietà ExtenderCATID.

Esempi

Per informazioni sulla modalità di esecuzione di questo codice di componente aggiuntivo, vedere Procedura: compilare ed eseguire gli esempi di codice del modello a oggetti di automazione.

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Solution3 Interfaccia

Overload ExtenderNames

Spazio dei nomi EnvDTE90

Altre risorse

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

Implementazione e utilizzo delle estensioni di automazione