NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MemoryStream.Position

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);

Property Value

The current position within the stream.

Exceptions

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.

Remarks

Position may not exceed one byte beyond the length of the stream.

See Also

MemoryStream Class | MemoryStream Members | System.IO Namespace