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
'宣言
Function OpenScope ( _
wszScope As String, _
dwOpenFlags As UInteger, _
ByRef riid As Guid, _
<OutAttribute> ByRef ppIUnk As Object _
) As Integer
'使用
Dim instance As IVsSmartOpenScope
Dim wszScope As String
Dim dwOpenFlags As UInteger
Dim riid As Guid
Dim ppIUnk As Object
Dim returnValue As Integer
returnValue = instance.OpenScope(wszScope, _
dwOpenFlags, riid, ppIUnk)
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
)
function OpenScope(
wszScope : String,
dwOpenFlags : uint,
riid : Guid,
ppIUnk : Object
) : int
Parameters
wszScope
Type: System.String[in] String containing the name of the file.
dwOpenFlags
Type: System.UInt32[in] Bit flags indicating how to open the file. Constructed using values from the CorOpenFlags Enumeration.
riid
Type: System.Guid%[in] Pointer to the GUID of the desired return interface.
ppIUnk
Type: System.Object%[out] Pointer to the requested interface on the scope.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.