Gets the length in bytes of the stream.

Namespace:  Rebex.Security
Assembly:  Rebex.Security (in Rebex.Security.dll)

Syntax

Visual Basic
Public Overrides ReadOnly Property Length As Long
	Get
C#
public override long Length { get; }

Return Value

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

Exceptions

ExceptionCondition
System..::..NotSupportedException A class derived from Stream does not support seeking.
System..::..ObjectDisposedException Methods were called after the stream was closed.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also