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

System.IO.Stream.Position Property

Gets or sets the position within the current stream. [Edit]

public abstract long Position { set; get; }

Value

A long that specifies the current position within the stream. [Edit]

Exceptions

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

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.

[Edit]

Requirements

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