This documentation is archived and is not being maintained.

SslStream.Length Property

Gets the length of the underlying stream.

Namespace: System.Net.Security
Assembly: System (in system.dll)

public override long Length { get; }
/** @property */
public long get_Length ()

public override function get Length () : long

Not applicable.

Property Value

A Int64.

Exception typeCondition

NotSupportedException

Getting the value of this property is not supported when the underlying stream is a NetworkStream.

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: