共用方式為


ProjectPackage.GetService<TServiceObject, TServiceType> 方法

這個類別和它的成員會保留給內部使用,其目的不是要供您的程式碼使用。

命名空間:  Microsoft.VisualStudio.Data.Schema.Package.Project.Internal
組件:  Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

語法

'宣告
Public Function GetService(Of TServiceObject, TServiceType) As TServiceType
public TServiceType GetService<TServiceObject, TServiceType>()
public:
generic<typename TServiceObject, typename TServiceType>
TServiceType GetService()
member GetService : unit -> 'TServiceType 
JScript 不支援泛型型別或方法。

型別參數

  • TServiceObject
  • TServiceType

傳回值

型別:TServiceType
服務物件。

.NET Framework 安全性

請參閱

參考

ProjectPackage 類別

GetService 多載

Microsoft.VisualStudio.Data.Schema.Package.Project.Internal 命名空間