Freigeben über


DataViewDocumentProvider.GetContext Method

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

'Declaration
Public Overridable Function GetContext ( _
    itemId As Integer _
) As IServiceProvider
public virtual IServiceProvider GetContext(
    int itemId
)
public:
virtual IServiceProvider^ GetContext(
    int itemId
)
abstract GetContext : 
        itemId:int -> IServiceProvider 
override GetContext : 
        itemId:int -> IServiceProvider 
public function GetContext(
    itemId : int
) : IServiceProvider

Parameters

  • itemId
    Type: System.Int32
    A 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)

Remarks

Notes to Inheritors

The derived class should override this method.

.NET Framework Security

See Also

Reference

DataViewDocumentProvider Class

Microsoft.VisualStudio.Data.Framework Namespace