Click or drag to resize
ImDiskDeviceSaveImageFile Method (FileStream, UInt32, ActionActionBoolean)
Saves contents of disk device to an image file while pumping window messages between reads and writes.

Namespace: LTR.IO.ImDisk
Assembly: ImDiskNet (in ImDiskNet.dll) Version: 1.0.0.0 (1.0.007.0)
Syntax
[ComVisibleAttribute(false)]
public void SaveImageFile(
	FileStream ImageFile,
	uint BufferSize,
	Action<Action<bool>> CancelAction
)

Parameters

ImageFile
Type: System.IOFileStream
FileStream object opened for writing where disk contents will be written.
BufferSize
Type: SystemUInt32
Buffer size to use when transferring data from disk device to file.
CancelAction
Type: SystemActionActionBoolean
A boolean flag that will be checked between buffer reads/writes. If flag is set to True operation will be cancelled and an exception thrown.
See Also