AuthenticatedStream(Stream, Boolean) 构造函数

定义

初始化 AuthenticatedStream 类的新实例。

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)

参数

innerStream
Stream

一个 Stream 对象,AuthenticatedStream 使用此对象发送和接收数据。

leaveInnerStreamOpen
Boolean

Boolean,指示关闭此 AuthenticatedStream 对象时是否同时关闭 innerStream

例外

innerStreamnull

innerStream 等于 Null

注解

为 参数指定true时,关闭 AuthenticatedStream 对流没有影响innerStreamleaveStreamOpen

此构造函数是为经过身份验证的流的实现者提供的,只能由派生自 AuthenticatedStream的类调用。

适用于