AuthenticatedStream Constructor (Stream^, Boolean)
.NET Framework (current version)
Initializes a new instance of the AuthenticatedStream class.
Assembly: System (in System.dll)
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 |
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
Available since 2.0
Show: