共用方式為


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 指定 參數時 leaveStreamOpen ,關閉 AuthenticatedStream 不會影響 innerStream 數據流。

此建構函式是針對已驗證數據流的實作者所提供,而且只能由衍生自 AuthenticatedStream的類別呼叫。

適用於