Mono Class Library: Microsoft.Win32.SafeHandles.SafeFileHandle Overview | Members

Microsoft.Win32.SafeHandles.SafeFileHandle Constructor

Documentation for this section has not yet been entered.

public SafeFileHandle (IntPtr preexistingHandle, bool ownsHandle)

Parameters

preexistingHandle
The file descriptor to wrap.
ownsHandle
Whether the SafeFileHandle owns the handle; If it does, it will ensure that it gets properly closed on finalization.

Remarks

Use the ownsHandle parameter to control whether the SafeFileHandle will close the descriptor or not.

Requirements

Namespace: Microsoft.Win32.SafeHandles
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0