_Solution.Extender[String] 属性

定义

获取请求的扩展程序对象(如果对此对象可用)。

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

参数

ExtenderName
String

必需。 要返回的扩展程序名称。

属性值

Object

一个 扩展程序 对象。

属性

示例

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  

注解

null如果没有可用的扩展程序对象,则此属性返回。

用于获取扩展器的 CATID 由对象的 ExtenderCATID 属性指定。

适用于