แก้ไข

แชร์ผ่าน


SslStream.Length Property

Definition

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.

Applies to