VCCodeElement.Extender 属性

如果所请求的扩展程序对象可用于此对象,则返回该扩展程序对象。

命名空间:  Microsoft.VisualStudio.VCCodeModel
程序集:  Microsoft.VisualStudio.VCCodeModel(在 Microsoft.VisualStudio.VCCodeModel.dll 中)

语法

声明
ReadOnly Property Extender ( _
    ExtenderName As String _
) As Object
Object this[
    string ExtenderName
] { get; }
property Object^ Extender[String^ ExtenderName] {
    Object^ get (String^ ExtenderName);
}
abstract Extender : 
        ExtenderName:string -> Object with get
JScript 不支持索引属性。

参数

  • ExtenderName
    类型:String

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

属性值

类型:Object
一个扩展程序对象。

备注

如果没有可用的 Extender 对象,则此属性返回 Nothing 或 nullnull 引用(在 Visual Basic 中为 Nothing)。

用于获取 Extender 的 CATID 由对象的 ExtenderCATID 属性提供。

示例

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

.NET Framework 安全性

请参阅

参考

VCCodeElement 接口

Microsoft.VisualStudio.VCCodeModel 命名空间