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
-
When overridden in a derived class, gets a value indicating whether the unmanaged resources from MaaFramework are invalid.
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.