แก้ไข

แชร์ผ่าน


IPersistFile.Load(String, Int32) Method

Definition

Opens the specified file and initializes an object from the file contents.

public:
 void Load(System::String ^ pszFileName, int dwMode);
public void Load (string pszFileName, int dwMode);
abstract member Load : string * int -> unit
Public Sub Load (pszFileName As String, dwMode As Integer)

Parameters

pszFileName
String

A zero-terminated string containing the absolute path of the file to open.

dwMode
Int32

A combination of values from the STGM enumeration to indicate the access mode in which to open pszFileName.

Remarks

The STGM enumeration is not part of the .NET Framework, but is documented in the MSDN library.

For more information, see the existing documentation for IPersistFile::Load in the MSDN library.

Applies to