Compartir a través de


IVsSmartOpenScope.OpenScope Method

Open a scope and return a requested interface on it.

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

Syntax

'Declaration
Function OpenScope ( _
    wszScope As String, _
    dwOpenFlags As UInteger, _
    ByRef riid As Guid, _
    <OutAttribute> ByRef ppIUnk As Object _
) As Integer
int OpenScope(
    string wszScope,
    uint dwOpenFlags,
    ref Guid riid,
    out Object ppIUnk
)
int OpenScope(
    [InAttribute] String^ wszScope, 
    [InAttribute] unsigned int dwOpenFlags, 
    [InAttribute] Guid% riid, 
    [OutAttribute] Object^% ppIUnk
)
abstract OpenScope : 
        wszScope:string * 
        dwOpenFlags:uint32 * 
        riid:Guid byref * 
        ppIUnk:Object byref -> int
function OpenScope(
    wszScope : String, 
    dwOpenFlags : uint, 
    riid : Guid, 
    ppIUnk : Object
) : int

Parameters

  • wszScope
    Type: String

    [in] String containing the name of the file.

  • dwOpenFlags
    Type: UInt32

    [in] Bit flags indicating how to open the file. Constructed using values from the CorOpenFlags Enumeration.

  • riid
    Type: Guid%

    [in] Pointer to the GUID of the desired return interface.

  • ppIUnk
    Type: Object%

    [out] Pointer to the requested interface on the scope.

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

IVsSmartOpenScope Interface

Microsoft.VisualStudio.Shell.Interop Namespace