Share via


Solution4.Extender Property (String)

Gets the requested Extender object if it is available for this object.

Namespace:  EnvDTE100
Assembly:  EnvDTE100 (in EnvDTE100.dll)

Syntax

'Declaration
ReadOnly Property Extender ( _
    ExtenderName As String _
) As Object
    Get
Object this[
    string ExtenderName
] { get; }
property Object^ Extender[[InAttribute] String^ ExtenderName] {
    Object^ get ([InAttribute] String^ ExtenderName);
}
abstract Extender : Object
JScript does not support indexed properties.

Parameters

  • ExtenderName
    Type: System.String
    Required. The name of the Extender to return.

Property Value

Type: System.Object
An Extender object.

Implements

Solution3.Extender[String]

Remarks

Extender returns Nothing or nulla null reference (Nothing in Visual Basic) if no Extender object is available.

The CATID used for obtaining the Extender is given by the object's ExtenderCATID property.

Examples

For information on how to run this add-in code, see How to: Compile and Run the Automation Object Model Code Examples.

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

.NET Framework Security

See Also

Reference

Solution4 Interface

Extender Overload

EnvDTE100 Namespace