FileUtilityObservedSave(FileOperationDelegate, PathName, String, FileErrorPolicy) Method |
Executes a save operation and reports failures according to the specified policy.
Namespace: Altaxo.Main.ServicesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic 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
FileOperationResultThe result of the save operation.
See Also