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.

AuthenticatedStream Constructor (Stream^, Boolean)

 

Initializes a new instance of the AuthenticatedStream class.

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

protected:
AuthenticatedStream(
	Stream^ innerStream,
	bool leaveInnerStreamOpen
)

Parameters

innerStream
Type: System.IO::Stream^

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

leaveInnerStreamOpen
Type: System::Boolean

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

Exception Condition
ArgumentNullException

innerStream is null.

-or-

innerStream is equal to Null.

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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft