Constructor ProgressFileStream
ProgressFileStream(FileStream, IProgress<ProgressInfo>)
Initializes a new instance of the ProgressFileStream class with the specified file stream and progress reporter.
public ProgressFileStream(FileStream fileStream, IProgress<ProgressInfo> percentProgress = null)
Parameters
fileStream
FileStreamThe file stream to read or write.
percentProgress
IProgress<ProgressInfo>The progress reporter to report the progress.
Exceptions
- ArgumentNullException
Thrown when
fileStream
is null.