SafePipeHandle(IntPtr, Boolean) SafePipeHandle(IntPtr, Boolean) SafePipeHandle(IntPtr, Boolean) 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 IntPtr IntPtr IntPtr

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

ownsHandle
Boolean Boolean Boolean Boolean

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

Security

SecurityPermission
for permission to call unmanaged code. Demand value: LinkDemand. Associated enumeration: UnmanagedCode

Applies to