SafePipeHandle(IntPtr, Boolean) Constructor

Definition

Initializes a new instance of the SafePipeHandle class.

public:
 SafePipeHandle(IntPtr preexistingHandle, bool ownsHandle);
public SafePipeHandle(IntPtr preexistingHandle, bool ownsHandle);
new Microsoft.Win32.SafeHandles.SafePipeHandle : nativeint * bool -> Microsoft.Win32.SafeHandles.SafePipeHandle
Public Sub New (preexistingHandle As IntPtr, ownsHandle As Boolean)

Parameters

preexistingHandle
IntPtr

nativeint

An IntPtr object that represents the pre-existing handle to use.

ownsHandle
Boolean

true to reliably release the handle during the finalization phase; false to prevent reliable release (not recommended).

Applies to