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
fileStreamFileStreamThe file stream to read or write.
percentProgressIProgress<ProgressInfo>The progress reporter to report the progress.
Exceptions
- ArgumentNullException
Thrown when
fileStreamis null.