This documentation is archived and is not being maintained.
SslStream Constructor
.NET Framework (current version)
Note The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.
Initializes a new instance of the SslStream class.
Namespace:
System.Net.Security Assembly:
System (in System.dll)
Name Description SslStream(Stream) Initializes a new instance of the SslStream class using the specified Stream .
SslStream(Stream, Boolean) Initializes a new instance of the SslStream class using the specified Stream and stream closure behavior.
SslStream(Stream, Boolean, RemoteCertificateValidationCallback) Initializes a new instance of the SslStream class using the specified Stream , stream closure behavior and certificate validation delegate.
SslStream(Stream, Boolean, RemoteCertificateValidationCallback, LocalCertificateSelectionCallback) Initializes a new instance of the SslStream class using the specified Stream , stream closure behavior, certificate validation delegate and certificate selection delegate.
SslStream(Stream, Boolean, RemoteCertificateValidationCallback, LocalCertificateSelectionCallback, EncryptionPolicy) Initializes a new instance of the SslStream class using the specified Stream
To prevent the SslStream from closing the stream that you supply, use the SslStream constructor.
Return to top