Reference.Extender 属性

如果请求的扩展程序对象可用于此对象,则获取该扩展程序对象。

命名空间:  VSLangProj
程序集:  VSLangProj(在 VSLangProj.dll 中)

语法

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

参数

  • ExtenderName
    类型:String

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

属性值

类型:Object
如果没有可用的扩展程序对象,则该属性返回 Nothing 或 nullnull 引用(在 Visual Basic 中为 Nothing)。

备注

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

示例

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 安全性

请参阅

参考

Reference 接口

VSLangProj 命名空间

其他资源

实现和使用自动化扩展程序