Share via


IVsSimpleDocFactory.LoadDocument(String, Guid, IntPtr) Method

Definition

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

public:
 int LoadDocument(System::String ^ pszMkDocument, Guid % riid, [Runtime::InteropServices::Out] IntPtr % ppDocData);
public int LoadDocument (string pszMkDocument, ref Guid riid, out IntPtr ppDocData);
abstract member LoadDocument : string * Guid * nativeint -> int
Public Function LoadDocument (pszMkDocument As String, ByRef riid As Guid, ByRef ppDocData As IntPtr) As Integer

Parameters

pszMkDocument
String

[in] Pointer to a string containing the path and file name.

riid
Guid

[in] Pointer to a GUID that is the REFIID of the interface desired.

ppDocData
IntPtr

nativeint

[out] Pointer to the desired interface on the object implementing IVsPersistDocData.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSimpleDocFactory::LoadDocument(  
   [in] LPCOLESTR pszMkDocument,   
   [in] REFIID riid,   
   [out, iid_is(riid)] void **ppDocData  
);  

Applies to