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

‘선언
Function GetItemContext ( _
    pHier As IVsHierarchy, _
    itemid As UInteger, _
    <OutAttribute> ByRef ppServiceProvider As IServiceProvider _
) As Integer
‘사용 방법
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
)
abstract GetItemContext : 
        pHier:IVsHierarchy * 
        itemid:uint32 * 
        ppServiceProvider:IServiceProvider byref -> int 
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