Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SslStream Constructor (Stream^)

 

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

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

public:
SslStream(
	Stream^ innerStream
)

Parameters

innerStream
Type: System.IO::Stream^

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

Exception Condition
ArgumentException

innerStream is not readable.

-or-

innerStream is not writable.

ArgumentNullException

innerStream is null.

-or-

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
Show:
© 2017 Microsoft