Share via


Proprietà ProjectItem.Extender

ottiene richiesto Extender 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 : Object
JScript non supporta le proprietà indicizzate.

Parametri

  • ExtenderName
    Tipo: System.String
    obbligatorio.Il nome dell'estensione da restituire.

Valore proprietà

Tipo: System.Object
Extender oggetto.

Note

Questa proprietà restituisce nullriferimento null (Nothing in Visual Basic) se non esiste alcun oggetto Extender disponibili.

Il CATID utilizzato per ottenere l'estensione è fornito dall'oggetto ExtenderCATID proprietà.

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

ProjectItem Interfaccia

Spazio dei nomi EnvDTE

Altre risorse

Implementazione e utilizzo delle estensioni di automazione