Click or drag to resize

FileUtilityObservedLoad(NamedFileOperationDelegate, FileName, String, FileErrorPolicy) Method

Executes a load operation that accepts a file name 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 ObservedLoad(
	NamedFileOperationDelegate saveFileAs,
	FileName fileName,
	string message,
	FileErrorPolicy policy = FileErrorPolicy.Inform
)

Parameters

saveFileAs  NamedFileOperationDelegate
The load operation.
fileName  FileName
The source file name.
message  String
The message shown when an error occurs.
policy  FileErrorPolicy  (Optional)
The error-handling policy.

Return Value

FileOperationResult
The result of the load operation.
See Also