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

System.IO.Stream.Position Property

Gets or sets the position within the current stream.

public abstract long Position { set; get; }

Value

A long that specifies the current position within the stream.

Exceptions

TypeReason
System.IO.IOExceptionAn I/O error has occurred.
NotSupportedExceptionThe stream does not support seeking.
ObjectDisposedExceptionThe stream is closed.

Remarks

The stream is required to support seeking to get or set the position.

Note: Use the Stream.CanSeek property to determine whether the current instance supports seeking.

Classes that derive from System.IO.Stream are required to provide an implementation of this property.

Operation
As described above.

Requirements

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