Condividi tramite


Proprietà _Solution.Extender

Ottiene l'oggetto Extender richiesto, se disponibile per l'oggetto.

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

Sintassi

'Dichiarazione
ReadOnly Property Extender ( _
    ExtenderName As String _
) As Object
Object this[
    string ExtenderName
] { get; }
property Object^ Extender[[InAttribute] String^ ExtenderName] {
    Object^ get ([InAttribute] String^ ExtenderName);
}
abstract Extender : 
        ExtenderName:string -> Object with get
JScript non supporta le proprietà indicizzate.

Parametri

  • ExtenderName
    Tipo: String

    Obbligatorio. Nome dell'oggetto Extender da restituire.

Valore proprietà

Tipo: Object
Un oggetto Extender.

Note

Questa proprietà restituisce nullriferimento null (Nothing in Visual Basic) se non vi sono oggetti Extender disponibili.

Il CATID utilizzato per ottenere l'Extender viene specificato dalla proprietà ExtenderCATID dell'oggetto.

Esempi

Sub ExtenderExample()
   ' You should have built and installed the Solution Extender
   ' sample in the Visual Studio Automation Samples directory for 
   ' this to work correctly.
   Dim extender As Object
   extender = DTE.Solution.Extender("SolutionMisc")
   MsgBox(extender.Notes)
End Sub

Sicurezza di .NET Framework

Vedere anche

Riferimenti

_Solution Interfaccia

Spazio dei nomi EnvDTE

Altre risorse

Implementazione e utilizzo delle estensioni di automazione