IWebApplicationCtxSvc.GetItemContext Method

Retrieve the IServiceProvider interface for a file.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function GetItemContext ( _
    pHier As IVsHierarchy, _
    itemid As UInteger, _
    <OutAttribute> ByRef ppServiceProvider As IServiceProvider _
) As Integer
'Usage
Dim instance As IWebApplicationCtxSvc 
Dim pHier As IVsHierarchy 
Dim itemid As UInteger 
Dim ppServiceProvider As IServiceProvider 
Dim returnValue As Integer 

returnValue = instance.GetItemContext(pHier, _
    itemid, ppServiceProvider)
int GetItemContext(
    IVsHierarchy pHier,
    uint itemid,
    out IServiceProvider ppServiceProvider
)
int GetItemContext(
    [InAttribute] IVsHierarchy^ pHier, 
    [InAttribute] unsigned int itemid, 
    [OutAttribute] IServiceProvider^% ppServiceProvider
)
function GetItemContext(
    pHier : IVsHierarchy, 
    itemid : uint, 
    ppServiceProvider : IServiceProvider
) : int

Parameters

  • itemid
    Type: System.UInt32

    [in] Integer. The identifier (VSITEMID) for the item.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IWebApplicationCtxSvc Interface

IWebApplicationCtxSvc Members

Microsoft.VisualStudio.Shell.Interop Namespace