Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft