Table of Contents

Class FreeLibrarySafeHandle

Namespace
Windows.Win32
Assembly
Ecng.Interop.dll

Represents a Win32 handle that can be closed with FreeLibrary(HMODULE).

public class FreeLibrarySafeHandle : SafeHandle, IDisposable
Inheritance
FreeLibrarySafeHandle
Implements
Inherited Members
Extension Methods

Constructors

FreeLibrarySafeHandle()

public FreeLibrarySafeHandle()

FreeLibrarySafeHandle(IntPtr, bool)

public FreeLibrarySafeHandle(IntPtr preexistingHandle, bool ownsHandle = true)

Parameters

preexistingHandle IntPtr
ownsHandle bool

Properties

IsInvalid

public override bool IsInvalid { get; }

Property Value

bool

Methods

ReleaseHandle()

protected override bool ReleaseHandle()

Returns

bool