Export (0) Print
Expand All

IPersistFile.GetCurFile Method

Retrieves either the absolute path to the current working file of the object or, if there is no current working file, the default file name prompt of the object.

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

void GetCurFile(
	out string ppszFileName
)

Parameters

ppszFileName
Type: System.String

When this method returns, contains the address of a pointer to a zero-terminated string containing the path for the current file, or the default file name prompt (such as *.txt). This parameter is passed uninitialized.

For more information, see the existing documentation for IPersistFile::GetCurFile 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
Show:
© 2015 Microsoft