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

System.IO.FileStream.Position Property

Gets or sets the current position of this stream. [Edit]

public override long Position { set; get; }

Value

A long containing the current position of this stream. [Edit]

Exceptions

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

Remarks

The position can be set beyond the end of the stream. [Edit]

Requirements

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