Table of Contents

Class MaaDisposableHandle<T>

Namespace
MaaFramework.Binding.Abstractions
Assembly
MaaFramework.Binding.dll

An abstract class providing a common mechanism for releasing handles from MaaFramework.

public abstract class MaaDisposableHandle<T> : IMaaDisposableHandle<T>, IMaaDisposable, IDisposable where T : IEquatable<T>

Type Parameters

T

The type of handle.

Inheritance

Implements

Inherited Members

Constructors

MaaDisposableHandle(T)

Creates a MaaFramework.Binding.Abstractions.MaaDisposableHandle`1 instance.

Properties

Handle

Gets the handle to be wrapped.

IsInvalid

Gets a value indicating whether the unmanaged resources from MaaFramework are invalid, when overridden in a derived class.

IsStateless

Gets a value indicating whether the current instance is stateless.

ThrowOnInvalid

Gets a value indicating whether an System.ObjectDisposedException is thrown when the current instance is invalid but still called.

Methods

Dispose()

Releases all resources from MaaFramework.

Dispose(bool)

Releases all resources from MaaFramework.

ReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

SetHandle(T, bool)

Sets the handle to the specified pre-existing handle.

SetHandleAsInvalid()

Marks a handle as no longer used.