共用方式為


_Solution.Extender[String] Property

Definition

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

public:
 property System::Object ^ Extender[System::String ^] { System::Object ^ get(System::String ^ ExtenderName); };
[System.Runtime.InteropServices.DispId(33)]
public object Extender[string ExtenderName] { [System.Runtime.InteropServices.DispId(33)] [System.Runtime.InteropServices.TypeLibFunc(1024)] get; }
[<System.Runtime.InteropServices.DispId(33)>]
[<get: System.Runtime.InteropServices.DispId(33)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(1024)>]
member this.Extender(string) : obj
Public ReadOnly Property Extender(ExtenderName As String) As Object

Parameters

ExtenderName
String

Required. The name of the Extender to return.

Property Value

An Extender object.

Attributes

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  

Remarks

This property returns null if no Extender object is available.

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

Applies to