IWebFileCtxService::EnsureFileOpened Method (UInt32, IVsWindowFrame^)

 

Opens a file by item identifier.

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

int EnsureFileOpened(
	unsigned int itemid,
	[OutAttribute] IVsWindowFrame^% ppFrame
)

Parameters

itemid
Type: System::UInt32

[in] Integer. The item identifier (VSITEMID) of the file to open.

ppFrame
Type: Microsoft.VisualStudio.Shell.Interop::IVsWindowFrame^

[out] Pointer to the IVsWindowFrame interface of the opened file.

Return Value

Type: System::Int32

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

Return to top
Show: