Table of Contents

Method ThrowIf

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

ThrowIf(bool, string, string?)

Throws a MaaFramework.Binding.MaaInteroperationException when the condition is true.

public static void ThrowIf(bool condition, string message = "", string? operationExpression = null)

Parameters

condition bool

The condition.

message string

The message of MaaFramework.Binding.MaaInteroperationException.

operationExpression string?

The operation expression of condition.

Exceptions

MaaInteroperationException