Click or drag to resize
StreamPosition Property
When overridden in a derived class, gets or sets the position within the current stream.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public abstract long Position { get; set; }

Return Value

Type: Int64
The current position within the stream.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
NotSupportedExceptionThe stream does not support seeking.
ObjectDisposedExceptionMethods were called after the stream was closed.
See Also