Export (0) Print
Expand All

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)

int GetItemContext (
	[InAttribute] IVsHierarchy pHier,
	[InAttribute] uint itemid,
	out IServiceProvider ppServiceProvider
)
int GetItemContext (
	/** @attribute InAttribute() */ IVsHierarchy pHier, 
	/** @attribute InAttribute() */ UInt32 itemid, 
	/** @attribute OutAttribute() */ /** @ref */ IServiceProvider ppServiceProvider
)
JScript does not support passing value-type arguments by reference.

Parameters

pHier

[in] Pointer to the IVsHierarchy interface for the item.

itemid

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

ppServiceProvider

[out] Pointer to an IServiceProvider interface for the item's file.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Community Additions

ADD
Show:
© 2014 Microsoft