IVsSimpleDocFactory::LoadDocument Method (String^, Guid, IntPtr)
Visual Studio 2015
Loads the given file into a document data object and returns the given interface on that object.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int LoadDocument(
String^ pszMkDocument,
[InAttribute] Guid% riid,
[OutAttribute] IntPtr% ppDocData
)
Parameters
- pszMkDocument
-
Type:
System::String^
[in] Pointer to a string containing the path and file name.
- riid
-
Type:
System::Guid
[in] Pointer to a GUID that is the REFIID of the interface desired.
- ppDocData
-
Type:
System::IntPtr
[out] Pointer to the desired interface on the object implementing IVsPersistDocData.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsSimpleDocFactory::LoadDocument( [in] LPCOLESTR pszMkDocument, [in] REFIID riid, [out, iid_is(riid)] void **ppDocData );
Show: