当实现由选件类,在数据视图检索表示上下文的服务提供程序当前文件。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。