SslStream Constructor (Stream)


Initializes a new instance of the SslStream class using the specified Stream.

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

new : 
        innerStream:Stream -> SslStream


Type: System.IO.Stream

A Stream object used by the SslStream for sending and receiving data.

Exception Condition

innerStream is not readable.


innerStream is not writable.


innerStream is null.


innerStream is equal to Null.

If a value is not specified in the configuration file for encryptionpolicy, the EncryptionPolicy defaults to EncryptionPolicy.RequireEncryption for the SslStream instance that is constructed.

The use of the Null cipher is required when the encryption policy is set to EncryptionPolicy.NoEncryption.

.NET Framework
Available since 2.0
Return to top