Table of Contents

Method Unregister<T>

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

Unregister<T>(string)

Unregisters a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaResource.

public bool Unregister<T>(string name) where T : IMaaCustomResource

Parameters

name string

The name of the instance when it was registered.

Returns

bool

true if the unregistration was successful; otherwise, false.

Type Parameters

T

The MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceUnregisterCustomAction(System.IntPtr,System.String) and MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceUnregisterCustomRecognition(System.IntPtr,System.String).

Unregister<T>(T)

Unregisters a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaResource.

public bool Unregister<T>(T custom) where T : IMaaCustomResource

Parameters

custom T

The custom resource instance to unregister.

Returns

bool

true if the unregistration was successful; otherwise, false.

Type Parameters

T

The MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceUnregisterCustomAction(System.IntPtr,System.String) and MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceUnregisterCustomRecognition(System.IntPtr,System.String).