PipeStream.InitializeHandle(SafePipeHandle, Boolean, Boolean) Method

Definition

Initializes a PipeStream object from the specified SafePipeHandle object.

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)

Parameters

handle
SafePipeHandle

The SafePipeHandle object of the pipe to initialize.

isExposed
Boolean

true to expose the handle; otherwise, false.

isAsync
Boolean

true to indicate that the handle was opened asynchronously; otherwise, false.

Attributes

Exceptions

A handle cannot be bound to the pipe.

Remarks

If the pipe is in a connected state, this method also sets the IsConnected property to true.

Applies to