Mono Class Library: System.IO.FileStream Overview | Members

System.IO.FileStream.Position Property

Gets or sets the current position of this stream.

public override long Position { set; get; }

Value

A long containing the current position of this stream.

Exceptions

TypeReason
NotSupportedExceptionThe current stream does not support seeking.
System.IO.IOExceptionAn I/O error occurred.
System.IO.EndOfStreamExceptionAttempted seeking past the end of a stream that does not support this.
ArgumentOutOfRangeExceptionThe value specified for a set operation is negative.

Remarks

The position can be set beyond the end of the stream.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0