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.Length

Returns the length in bytes of the stream.

[Visual Basic]
Overridable Public ReadOnly Property Length As Long
[C#]
public long Length {override get;}
[C++]
public: __property virtual __int64 get_Length();
[JScript]
public function get Length() : long;

Property Value

A long value representing the length of the stream in bytes.

Exceptions

Exception Type Condition
NotSupportedException CanSeek for this stream is false.
IOException An I/O error occurs.

See Also

FileStream Class | FileStream Members | System.IO Namespace