[This is preliminary documentation and is subject to change.]
Gets the length in bytes of the stream.
Namespace: Tools.IOtAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public override long Length { get; } |
| Visual Basic |
|---|
Public Overrides ReadOnly Property Length As Long Get |
| Visual C++ |
|---|
public: virtual property long long Length { long long get () override; } |
| F# |
|---|
abstract Length : int64 override Length : int64 |
| JScript |
|---|
override function get Length () : long |
Return Value
A long value representing the length of the stream in bytes.
Exceptions
| Exception | Condition |
|---|---|
| System..::..NotSupportedException | A class derived from Stream does not support seeking. |
| System..::..ObjectDisposedException | Methods were called after the stream was closed. |