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

Microsoft.Win32.SafeHandles.SafeFileHandle Constructor

Documentation for this section has not yet been entered. [Edit]

public SafeFileHandle (IntPtr preexistingHandle, bool ownsHandle)

Parameters

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

Remarks

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

Requirements

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