Click or drag to resize
Ranorex

ValidateFail Method (String, ValidateOptions)

Always lets the validation fail.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static bool Fail(
	string message,
	ValidateOptions options
)

Parameters

message
Type: SystemString
The message to log.
options
Type: RanorexValidateOptions
Additional ValidateOptions for this validation action.

Return Value

Type: Boolean
Always returns false (unless a ValidationException is thrown depending on the passed options).
Exceptions
ExceptionCondition
ValidationExceptionIf options.ExceptionOnFail is true.
See Also