Click or drag to resize

FileUtilityObservedSave(FileOperationDelegate, PathName, String, FileErrorPolicy) Method

Executes a save operation and reports failures according to the specified policy.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static FileOperationResult ObservedSave(
	FileOperationDelegate saveFile,
	PathName fileName,
	string message,
	FileErrorPolicy policy = FileErrorPolicy.Inform
)

Parameters

saveFile  FileOperationDelegate
The save operation.
fileName  PathName
The target file or folder name.
message  String
The message shown when an error occurs.
policy  FileErrorPolicy  (Optional)
The error-handling policy.

Return Value

FileOperationResult
The result of the save operation.
See Also