When overridden in a derived class, gets the length in bytes of the stream.
Namespace:
Contracts
Assembly: Contracts (in Contracts.dll)
Assembly: Contracts (in Contracts.dll)
Public ReadOnly Overrides Property Length() As Long
This language is not supported or no code example is available.
public override long Length {get;}
This language is not supported or no code example is available.
Property Value
Type: longA long value representing the length of the stream in bytes.
Exception type | Condition |
---|---|
A class derived from Stream does not support seeking. |
|
Methods were called after the stream was closed. |