IVsSmartOpenScope::OpenScope Method (String^, UInt32, Guid, Object^)

 

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)

int OpenScope(
	String^ wszScope,
	unsigned int dwOpenFlags,
	[InAttribute] Guid% riid,
	[OutAttribute] Object^% ppIUnk
)

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.

Return to top
Show: