共用方式為


ProjectItem.Extender 屬性

取得要求的 Extender (如果適用於這個物件)。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.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 物件。

備註

如果沒有擴充項物件可以使用,這個屬性會傳回 nullNull 參照 (即 Visual Basic 中的 Nothing)。

取得擴充項時所使用的 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 安全性

請參閱

參考

ProjectItem 介面

EnvDTE 命名空間

其他資源

實作及使用 Automation 擴充項