次の方法で共有


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 名前空間