Retrieves the service provider representing the context of the current document in the data view.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Public Overridable Function GetContext ( _
itemId As Integer _
) As IServiceProvider
'使用
Dim instance As DataViewDocumentProvider
Dim itemId As Integer
Dim returnValue As IServiceProvider
returnValue = instance.GetContext(itemId)
public virtual IServiceProvider GetContext(
int itemId
)
public:
virtual IServiceProvider^ GetContext(
int itemId
)
public function GetContext(
itemId : int
) : IServiceProvider
Parameters
itemId
Type: System.Int32A numerical identifier for the node in the data view.
Return Value
Type: System.IServiceProvider
An IServiceProvider object representing the context of the current document in the data view.
Implements
IVsDataViewDocumentProvider.GetContext(Int32)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataViewDocumentProvider Class