共用方式為


PipeStream.InitializeHandle(SafePipeHandle, Boolean, Boolean) 方法

定義

從指定的 SafePipeHandle 物件初始化 PipeStream 物件。

protected:
 void InitializeHandle(Microsoft::Win32::SafeHandles::SafePipeHandle ^ handle, bool isExposed, bool isAsync);
protected void InitializeHandle (Microsoft.Win32.SafeHandles.SafePipeHandle? handle, bool isExposed, bool isAsync);
protected void InitializeHandle (Microsoft.Win32.SafeHandles.SafePipeHandle handle, bool isExposed, bool isAsync);
[System.Security.SecurityCritical]
protected void InitializeHandle (Microsoft.Win32.SafeHandles.SafePipeHandle handle, bool isExposed, bool isAsync);
member this.InitializeHandle : Microsoft.Win32.SafeHandles.SafePipeHandle * bool * bool -> unit
[<System.Security.SecurityCritical>]
member this.InitializeHandle : Microsoft.Win32.SafeHandles.SafePipeHandle * bool * bool -> unit
Protected Sub InitializeHandle (handle As SafePipeHandle, isExposed As Boolean, isAsync As Boolean)

參數

handle
SafePipeHandle

要初始化之管道的 SafePipeHandle 物件。

isExposed
Boolean

如果要公開控制代碼,則為 true;否則為 false

isAsync
Boolean

true 表示控制代碼為非同步開啟;否則為 false

屬性

例外狀況

無法繫結至管道的控制代碼。

備註

如果管道處於連線狀態,這個方法也會將 IsConnected 屬性設定為 true

適用於