IVsSimpleDocFactory::LoadDocument Method (String^, Guid, IntPtr)

 

Loads the given file into a document data object and returns the given interface on that object.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

If 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
);
Return to top
Show: