Edit

Share via


AuthenticatedStream(Stream, Boolean) Constructor

Definition

Initializes a new instance of the AuthenticatedStream class.

protected:
 AuthenticatedStream(System::IO::Stream ^ innerStream, bool leaveInnerStreamOpen);
protected AuthenticatedStream (System.IO.Stream innerStream, bool leaveInnerStreamOpen);
new System.Net.Security.AuthenticatedStream : System.IO.Stream * bool -> System.Net.Security.AuthenticatedStream
Protected Sub New (innerStream As Stream, leaveInnerStreamOpen As Boolean)

Parameters

innerStream
Stream

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

leaveInnerStreamOpen
Boolean

A Boolean that indicates whether closing this AuthenticatedStream object also closes innerStream.

Exceptions

innerStream is null.

-or-

innerStream is equal to Null.

Remarks

When you specify true for the leaveStreamOpen parameter, closing the AuthenticatedStream has no effect on the innerStream stream.

This constructor is provided for implementers of authenticated streams, and can be called only by classes that are derived from AuthenticatedStream.

Applies to