SslStream.Length Property

Note: This property is new in the .NET Framework version 2.0.

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

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: