Export (0) Print
Expand All

IPersistFile.Load Method

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

Namespace:  System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

void Load(
	string pszFileName,
	int dwMode


Type: System.String

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

Type: System.Int32

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

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1
© 2015 Microsoft