Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Save Method
Collapse the table of content
Expand the table of content

IPersistFile.Save Method

Saves a copy of the object into the specified file.

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

void Save(
	string pszFileName,
	bool fRemember


Type: System.String

A zero-terminated string containing the absolute path of the file to which the object is saved.

Type: System.Boolean

true to used the pszFileName parameter as the current working file; otherwise false.

For more information, see the existing documentation for IPersistFile::Save 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

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft