Table of Contents

Method SetOption<T>

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

SetOption<T>(TOption, T)

Sets value to an option.

bool SetOption<T>(TOption opt, T value)

Parameters

opt TOption

The option.

value T

The value.

Returns

bool

true if the option was set successfully; otherwise, false.

Type Parameters

T

The type specified by the opt(see remarks of enumerations).

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.