Checks if the two SwitchWarning objects are equal by considering whether warning message should be compared or not.

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public bool Equals(SwitchWarning warning, bool ignoreWarningMessage)

Parameters

NameTypeDescription
warningSwitchWarning

Specifies the SwitchWarning object to which this object is compared.

ignoreWarningMessagebool

Specifies if the warning message must be ignored. If the warning message is to be ignored,then value of ignoreWarningMessage is true. If warning message is to be compared then value of ignoreWarningMessage is false.

Returns

true if the two instances are equal; otherwise, false.