IWebFileCtxService.EnsureFileOpened Method

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)

Syntax

‘선언
Function EnsureFileOpened ( _
    itemid As UInteger, _
    <OutAttribute> ByRef ppFrame As IVsWindowFrame _
) As Integer
‘사용 방법
Dim instance As IWebFileCtxService
Dim itemid As UInteger
Dim ppFrame As IVsWindowFrame
Dim returnValue As Integer

returnValue = instance.EnsureFileOpened(itemid, _
    ppFrame)
int EnsureFileOpened(
    uint itemid,
    out IVsWindowFrame ppFrame
)
int EnsureFileOpened(
    [InAttribute] unsigned int itemid, 
    [OutAttribute] IVsWindowFrame^% ppFrame
)
abstract EnsureFileOpened : 
        itemid:uint32 * 
        ppFrame:IVsWindowFrame byref -> int 
function EnsureFileOpened(
    itemid : uint, 
    ppFrame : IVsWindowFrame
) : int

Parameters

  • itemid
    Type: System.UInt32
    [in] Integer. The item identifier (VSITEMID) of the file to open.

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

IWebFileCtxService Interface

IWebFileCtxService Members

Microsoft.VisualStudio.Shell.Interop Namespace