Table of Contents

Method SetOptionInferenceDevice

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

SetOptionInferenceDevice(IMaaOption<ResourceOption>?, InferenceDevice)

Sets value to an option.

public static bool SetOptionInferenceDevice(this IMaaOption<ResourceOption>? opt, InferenceDevice value)

Parameters

opt IMaaOption<ResourceOption>?

The option.

value InferenceDevice

The value.

Returns

bool

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

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.

SetOptionInferenceDevice(IMaaOption<ResourceOption>?, int)

Sets value to an option.

public static bool SetOptionInferenceDevice(this IMaaOption<ResourceOption>? opt, int value)

Parameters

opt IMaaOption<ResourceOption>?

The option.

value int

The value.

Returns

bool

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

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.

SetOptionInferenceDevice(IMaaOption<ResourceOption>?, InferenceExecutionProvider)

Sets value to an option.

public static bool SetOptionInferenceDevice(this IMaaOption<ResourceOption>? opt, InferenceExecutionProvider value)

Parameters

opt IMaaOption<ResourceOption>?

The option.

value InferenceExecutionProvider

The value.

Returns

bool

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

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.