クラスで実装された場合、データの現在のドキュメントのコンテキストを表します。サービス プロバイダーを表示するを取得します。
名前空間: Microsoft.VisualStudio.Data.Services.SupportEntities
アセンブリ: Microsoft.VisualStudio.Data.Services (Microsoft.VisualStudio.Data.Services.dll 内)
構文
'宣言
Function GetContext ( _
itemId As Integer _
) As IServiceProvider
IServiceProvider GetContext(
int itemId
)
IServiceProvider^ GetContext(
int itemId
)
abstract GetContext :
itemId:int -> IServiceProvider
function GetContext(
itemId : int
) : IServiceProvider
パラメーター
- itemId
型 : System.Int32
データ ビューのノードの数値識別子。
戻り値
型 : System.IServiceProvider
データ ビューの現在のドキュメントのコンテキストを表す IServiceProvider のオブジェクト。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。