Solution4.Extender 属性 (String)

如果请求的 Extender 对象可用于此对象,则获取该 Extender 对象。

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

语法

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

参数

  • ExtenderName
    类型:System.String
    必选。要返回的扩展程序名称。

属性值

类型:System.Object
一个 Extender 对象。

实现

Solution3.Extender[String]

备注

如果没有 Extender 对象可用,则 Extender 返回 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 安全性

请参见

参考

Solution4 接口

Extender 重载

EnvDTE100 命名空间