A long value containing the length of the stream in bytes.
Type Reason NotSupportedException FileStream.CanSeek for this stream is false. System.IO.IOException An I/O error occurred, such as the file being closed.
For a list of common file and directory operations, see Common I/O Tasks.