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!

FileStream.CanSeek

Determines whether the current stream supports seeking.

[Visual Basic]
Overridable Public ReadOnly Property CanSeek As Boolean
[C#]
public bool CanSeek {override get;}
[C++]
public: __property virtual bool get_CanSeek();
[JScript]
public function get CanSeek() : Boolean;

Property Value

true if the stream supports seeking; false otherwise. Also returns false if the stream is closed.

Remarks

If a Stream subclass does not support seeking, a call to Length (both get and set), Position, or Seek will throw a NotSupportedException.

See Also

FileStream Class | FileStream Members | System.IO Namespace