Freigeben über


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

'Declaration
Function EnsureFileOpened ( _
    itemid As UInteger, _
    <OutAttribute> ByRef ppFrame As IVsWindowFrame _
) As Integer
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: UInt32

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

Return Value

Type: 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

Microsoft.VisualStudio.Shell.Interop Namespace