VCCodeElement.Extender Property

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

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

声明
ReadOnly Property Extender ( _
    ExtenderName As String _
) As Object
用法
Dim instance As VCCodeElement
Dim ExtenderName As String
Dim value As Object

value = instance.Extender(ExtenderName)
Object Extender[
    string ExtenderName
] { get; }
property Object^ Extender[String^ ExtenderName] {
    Object^ get (String^ ExtenderName);
}
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.

Remarks

This property 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

Sub ExtenderExample()
   ' You must 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

Permissions

See Also

Reference

VCCodeElement Interface

VCCodeElement Members

Microsoft.VisualStudio.VCCodeModel Namespace