IVsDataViewDocumentProvider.GetContext Method
When implemented by a class, retrieves the service provider representing the context of the current document in the data view.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Declaration
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
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.
.NET Framework Security
- 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
IVsDataViewDocumentProvider Interface
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace