SafePipeHandle Constructor (IntPtr, Boolean)

 

Initializes a new instance of the SafePipeHandle class.

Namespace:   Microsoft.Win32.SafeHandles
Assembly:  System.Core (in System.Core.dll)

public SafePipeHandle(
	IntPtr preexistingHandle,
	bool ownsHandle
)

Parameters

preexistingHandle
Type: System.IntPtr

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

ownsHandle
Type: System.Boolean

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

SecurityPermission

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

.NET Framework
Available since 3.5
Return to top
Show: