SaveEventArgs Class

Namespace: CodeEffects.Rule.Asp
Assembly: CodeEffects.Rule.dll

This arguments class provides information about the rule when the SaveRule event of the Asp.RuleEditor is raised.

Syntax

public class  SaveEventArgs : System.EventArgs

Properties

  • IsEvaluationTypeRule Type: System.Nullable<System.Boolean>

    Gets or sets the value indicating whether the rule that is being handled is of evaluation type. Obviously, a value of False means that the rule is of execution type. This property helps when you store different types of rules in different locations. A value of null indicates that Code Effects component doesn't know the type of the rule.

  • ReferencedRules Type: System.Collections.Generic<System.String>

    Gets or sets the list of rule IDs of all reusable rules that this rule may reference. When saved in a database, these IDs are useful if you are about to delete a rule and want to make sure that it's not being used in other rules.

  • RuleDescription Type: System.String

    Gets or sets the value of the rule description entered by the rule author into the Description text box of the Toolbar. This property is ignored if the Toolbar is hidden (RuleEditor.ShowToolBar = False).

  • RuleID Type: System.String

    Gets or sets the ID of the rule that is being handled. Note that Code Effects component assigns IDs to all new rules automatically using string representations of System.Guid. Those IDs are stored in Rule XML. The only time you need to overwrite this value is if your system uses its own rule IDs.

  • RuleName Type: System.String

    Gets or sets the value of the rule name entered by the rule author into the Name text box of the Toolbar. This property is ignored if the Toolbar is hidden (RuleEditor.ShowToolBar = False).

  • RuleXmlAsDocument Type: System.String

    Gets or sets the string value of the XML document that contains the rule that is being handled (Rule XML). This value is useful when you store each rule as a whole XML document. This would most likely be the case if you store rules in a database using SQL XML data type.

  • RuleXmlAsNode Type: System.String

    Gets or sets the string value of a single XML node that contains the rule that is being handled. This node can be used if you are adding this rule to a list of rule nodes of a single XML ruleset.

Notes

The Asp.RuleEditor and Toolbar topics provide code samples that use the SaveEventArgs class.

Post your support requests on Stackoverflow.com. You can also post your comments and product feedback using the form at the bottom of this page.
Comments: 0
Name (optional):
Comment (URLs are allowed and must start with http:// or https://; all tags will be encoded):
Remaining character count: