When overridden in a derived class, gets or sets the position within the current stream.

C# | Visual Basic | Visual C++ | J# |
public override long Position { get; set; }
Public Overrides Property Position As Long Get Set
public: virtual property long long Position { long long get () override; void set (long long value) override; }
/** @property */ public long get_Position() /** @property */ public void set_Position(long value)

The current position within the stream.

Exception | Condition |
---|---|
IOException | An I/O error occurs.
|
NotSupportedException | The stream does not support seeking.
|
ObjectDisposedException | Methods were called after the stream was closed.
|