SslStream.Length Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the length of the underlying stream.
public:
virtual property long Length { long get(); };
public override long Length { get; }
member this.Length : int64
Public Overrides ReadOnly Property Length As Long
Property Value
The length of the underlying stream.
Exceptions
Getting the value of this property is not supported when the underlying stream is a NetworkStream.
Remarks
This property returns the value returned by invoking Length on the underlying stream. If the underlying stream is not seekable, this method typically throws an exception. The run-time type of the underlying stream determines the run-time type of the exception that is thrown.