|
Result class
Namespace: CodeEffects.Rule.Common
Assembly: CodeEffects.Rule.dll
This class was deprecated in version 2.0.
Provides the result data of execution or evaluation of business rules created with the Web Rule control.
Syntax
public sealed class Result
Properties
-
FailedFields
Type: System.Collections.Generic.List<CodeEffects.Rule.Common.FailedField>
Gets the list of all fields or in-rule methods that failed to evaluate before the evaluation of the entire rule was declared a success or failure. Returns a null reference if no fields failed to evaluate. Use this property to debug individual rules.
-
Success
Type: System.Boolean
Indicates if the rule evaluation was successful.
-
SucceededFieldName
Type: System.String
Gets the name of the first rule field or in-rule method who's evaluation to true was enough to declare the evaluation of the entire rule as a success. Returns null reference if rule evaluation has failed. Notice that this is not just the first field that evaluated to True.
Syntax
Result result = CodeEffects.Rule.Evaluator.Evaluate(ruleXmlString, sourceObjectInstance);
|