Determines the current position within the stream.
[Visual Basic] Overridable Public Property Position As Long [C#] public long Position {override get; override set;} [C++] public: __property virtual __int64 get_Position(); public: __property virtual void set_Position(__int64); [JScript] public function get Position() : long; public function set Position(long);
The current position within the stream.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | The position is set to a negative value or a value greater than one byte beyond the length of the current stream. |
IOException | The stream is closed. |
Position may not exceed one byte beyond the length of the stream.
MemoryStream Class | MemoryStream Members | System.IO Namespace