Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Collapse]eXpressApp Framework
 [Expand]Fundamentals
 [Expand]Getting Started
 [Expand]Concepts
 [Expand]Design-Time Features
 [Expand]Functional Testing
 [Expand]Deployment
 [Expand]Task-Based Help
 [Expand]Frequently Asked Questions
 [Collapse]API Reference
  [Expand]DevExpress.EasyTest.Framework
  [Expand]DevExpress.ExpressApp
  [Expand]DevExpress.ExpressApp.Actions
  [Expand]DevExpress.ExpressApp.AuditTrail
  [Expand]DevExpress.ExpressApp.Chart
  [Expand]DevExpress.ExpressApp.Chart.Web
  [Expand]DevExpress.ExpressApp.Chart.Win
  [Expand]DevExpress.ExpressApp.CloneObject
  [Expand]DevExpress.ExpressApp.ConditionalAppearance
  [Expand]DevExpress.ExpressApp.Dashboards
  [Expand]DevExpress.ExpressApp.Dashboards.Web
  [Expand]DevExpress.ExpressApp.Dashboards.Win
  [Expand]DevExpress.ExpressApp.Data
  [Expand]DevExpress.ExpressApp.DC
  [Expand]DevExpress.ExpressApp.DC.ClassGeneration
  [Expand]DevExpress.ExpressApp.Editors
  [Expand]DevExpress.ExpressApp.EF
  [Expand]DevExpress.ExpressApp.EF.Utils
  [Expand]DevExpress.ExpressApp.FileAttachments.Web
  [Expand]DevExpress.ExpressApp.FileAttachments.Win
  [Expand]DevExpress.ExpressApp.Filtering
  [Expand]DevExpress.ExpressApp.HtmlPropertyEditor.Web
  [Expand]DevExpress.ExpressApp.HtmlPropertyEditor.Win
  [Expand]DevExpress.ExpressApp.Kpi
  [Expand]DevExpress.ExpressApp.Layout
  [Expand]DevExpress.ExpressApp.Maps.Mobile
  [Expand]DevExpress.ExpressApp.Maps.Mobile.Editors
  [Expand]DevExpress.ExpressApp.Maps.Web
  [Expand]DevExpress.ExpressApp.Maps.Web.Helpers
  [Expand]DevExpress.ExpressApp.MiddleTier
  [Expand]DevExpress.ExpressApp.Mobile
  [Expand]DevExpress.ExpressApp.Mobile.Editors
  [Expand]DevExpress.ExpressApp.Mobile.MobileModel
  [Expand]DevExpress.ExpressApp.Mobile.SystemModule
  [Expand]DevExpress.ExpressApp.Model
  [Expand]DevExpress.ExpressApp.Model.Core
  [Expand]DevExpress.ExpressApp.Model.NodeGenerators
  [Expand]DevExpress.ExpressApp.ModelEditor
  [Expand]DevExpress.ExpressApp.Notifications
  [Expand]DevExpress.ExpressApp.Notifications.Web
  [Expand]DevExpress.ExpressApp.Notifications.Win
  [Expand]DevExpress.ExpressApp.PivotChart
  [Expand]DevExpress.ExpressApp.PivotChart.Web
  [Expand]DevExpress.ExpressApp.PivotChart.Win
  [Expand]DevExpress.ExpressApp.PivotGrid
  [Expand]DevExpress.ExpressApp.PivotGrid.Web
  [Expand]DevExpress.ExpressApp.PivotGrid.Win
  [Expand]DevExpress.ExpressApp.Reports
  [Expand]DevExpress.ExpressApp.Reports.Web
  [Expand]DevExpress.ExpressApp.Reports.Win
  [Expand]DevExpress.ExpressApp.ReportsV2
  [Expand]DevExpress.ExpressApp.ReportsV2.Web
  [Expand]DevExpress.ExpressApp.ReportsV2.Win
  [Expand]DevExpress.ExpressApp.Scheduler
  [Expand]DevExpress.ExpressApp.Scheduler.Web
  [Expand]DevExpress.ExpressApp.Scheduler.Win
  [Expand]DevExpress.ExpressApp.ScriptRecorder
  [Expand]DevExpress.ExpressApp.ScriptRecorder.Web
  [Expand]DevExpress.ExpressApp.ScriptRecorder.Win
  [Expand]DevExpress.ExpressApp.Security
  [Expand]DevExpress.ExpressApp.Security.Adapters
  [Expand]DevExpress.ExpressApp.Security.ClientServer.Wcf
  [Expand]DevExpress.ExpressApp.Security.EF.Adapters
  [Expand]DevExpress.ExpressApp.Security.Strategy
  [Expand]DevExpress.ExpressApp.Security.Xpo.Adapters
  [Expand]DevExpress.ExpressApp.StateMachine
  [Expand]DevExpress.ExpressApp.SystemModule
  [Expand]DevExpress.ExpressApp.Templates
  [Expand]DevExpress.ExpressApp.Templates.ActionContainers
  [Expand]DevExpress.ExpressApp.TreeListEditors
  [Expand]DevExpress.ExpressApp.TreeListEditors.Web
  [Expand]DevExpress.ExpressApp.TreeListEditors.Win
  [Expand]DevExpress.ExpressApp.Updating
  [Expand]DevExpress.ExpressApp.Utils
  [Expand]DevExpress.ExpressApp.Validation
  [Expand]DevExpress.ExpressApp.Validation.Web
  [Expand]DevExpress.ExpressApp.Validation.Win
  [Expand]DevExpress.ExpressApp.ViewVariantsModule
  [Expand]DevExpress.ExpressApp.Web
  [Expand]DevExpress.ExpressApp.Web.Controls
  [Expand]DevExpress.ExpressApp.Web.Editors
  [Expand]DevExpress.ExpressApp.Web.Editors.ASPx
  [Expand]DevExpress.ExpressApp.Web.SystemModule
  [Expand]DevExpress.ExpressApp.Web.Templates
  [Expand]DevExpress.ExpressApp.Web.Utils
  [Expand]DevExpress.ExpressApp.Win
  [Expand]DevExpress.ExpressApp.Win.Core
  [Expand]DevExpress.ExpressApp.Win.Editors
  [Expand]DevExpress.ExpressApp.Win.Model
  [Expand]DevExpress.ExpressApp.Win.SystemModule
  [Expand]DevExpress.ExpressApp.Win.Templates
  [Expand]DevExpress.ExpressApp.Win.Templates.Navigation
  [Expand]DevExpress.ExpressApp.Workflow
  [Expand]DevExpress.ExpressApp.Workflow.Win
  [Expand]DevExpress.ExpressApp.Xpo
  [Expand]DevExpress.ExpressApp.Xpo.Utils
  [Expand]DevExpress.Persistent.Base
  [Expand]DevExpress.Persistent.Base.General
  [Expand]DevExpress.Persistent.Base.ReportsV2
  [Expand]DevExpress.Persistent.Base.Security
  [Expand]DevExpress.Persistent.BaseImpl
  [Expand]DevExpress.Persistent.BaseImpl.EF
  [Expand]DevExpress.Persistent.BaseImpl.EF.PermissionPolicy
  [Expand]DevExpress.Persistent.BaseImpl.PermissionPolicy
  [Collapse]DevExpress.Persistent.Validation
   [Expand]CodeRuleAttribute Class
   [Expand]ContextIdentifier Structure
   [Expand]ContextIdentifiers Structure
    CriteriaEvaluationBehavior Enumeration
   [Expand]CustomIsEmptyValueEventArgs Class
   [Expand]CustomNeedToValidateRuleEventArgs Class
   [Expand]CustomValidateRuleEventArgs Class
    DefaultContexts Enumeration
   [Expand]GenerateMessageTemplatesModelAttribute Class
   [Expand]IEmptyCheckable Interface
   [Expand]IModelValidationDefaultErrorMessageTemplates Interface
   [Expand]IRule Interface
   [Expand]IRuleBaseProperties Interface
   [Expand]IRuleCollectionPropertyProperties Interface
   [Expand]IRuleSource Interface
   [Expand]IRuleSupportsCollectionAggregatesProperties Interface
    ParametersMode Enumeration
   [Expand]RuleBase Class
   [Expand]RuleBaseAttribute Class
   [Expand]RuleBaseProperties Class
   [Expand]RuleCombinationOfPropertiesIsUniqueAttribute Class
   [Expand]RuleCombinationOfPropertiesIsUniqueProperties Class
   [Expand]RuleCriteriaAttribute Class
   [Expand]RuleCriteriaProperties Class
   [Expand]RuleFromBoolPropertyAttribute Class
   [Expand]RuleFromBoolPropertyProperties Class
   [Expand]RuleIsReferencedAttribute Class
   [Expand]RuleIsReferencedProperties Class
   [Expand]RuleObjectExistsAttribute Class
   [Expand]RuleObjectExistsProperties Class
   [Expand]RulePropertyValueProperties Class
   [Expand]RuleRangeAttribute Class
   [Expand]RuleRangeProperties Class
   [Expand]RuleRegularExpressionAttribute Class
   [Expand]RuleRegularExpressionProperties Class
   [Expand]RuleRequiredFieldAttribute Class
   [Expand]RuleRequiredFieldProperties Class
   [Expand]RuleSearchObjectProperties Class
   [Collapse]RuleSet Class
     RuleSet Members
    [Expand]RuleSet Constructor
    [Expand]RuleSet Properties
    [Expand]RuleSet Events
    [Expand]RuleSet Methods
   [Expand]RuleStringComparisonAttribute Class
   [Expand]RuleStringComparisonProperties Class
   [Expand]RuleUniqueValueAttribute Class
   [Expand]RuleUniqueValueProperties Class
   [Expand]RuleValidatedEventArgs Class
   [Expand]RuleValidationResult Class
   [Expand]RuleValueComparisonAttribute Class
   [Expand]RuleValueComparisonProperties Class
    StringComparisonType Enumeration
   [Expand]ValidationCompletedEventArgs Class
   [Expand]ValidationException Class
    ValidationOutcome Enumeration
    ValidationResultType Enumeration
    ValidationState Enumeration
   [Expand]Validator Class
    ValueComparisonType Enumeration
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

RuleSet Members

Specifies a set of Validation Rules that can be checked on an object.

Expanded Public Constructors

Show: Inherited
  Name Description
Public method RuleSet Overloaded. Initializes a new instance of the RuleSet class with the same rules and rule sources as its parameter.
Top

Expanded Public Properties

Show: Inherited
  Name Description
Public property EnableDelayedRuleRegistration Specifies whether all new rules are collected before the GetRules method returns them.
Public property IgnoreWarningAndInformationRules Specifies whether or not the ValidationOutcome.Warning and ValidationOutcome.Information rule validation result types are ignored (see IRuleBaseProperties.ResultType).
Public propertyStatic member NeedToValidateAggregatedRulesInNestedObjectSpace Specifies whether or not the NeedToValidateRule method will return true when a rule with an assigned IRuleSupportsCollectionAggregatesProperties.TargetCollectionAggregate property and an object from nested Object Space are passed.
Public property RegisteredRules Specifies a list of rules registered in the RuleSet.
Public property RegisteredSources Specifies a list of rule sources registered in the current RuleSet.
Top

Expanded Public Methods

Show: Inherited
  Name Description
Public method Clear Clears the RegisteredRules and RegisteredSources of the RuleSet.
Public methodStatic member Equals Determines whether the specified System.Object instances are considered equal. (Inherited from System.Object)
Public method Equals Determines whether the specified System.Object is equal to the current System.Object. (Inherited from System.Object)
Public method FindRule Returns a rule by its ID.
Public method GetEnumerator Returns an enumerator that iterates through a collection of rules.
Public method GetHashCode Serves as a hash function for a particular type. System.Object.GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from System.Object)
Public method GetRules Overloaded. Returns a list of rules that belongs to the current RuleSet.
Public method GetType Gets the System.Type of the current instance. (Inherited from System.Object)
Public methodStatic member IsEmptyValue Determines whether or not the validation rule's target property value is considered empty.
Public methodStatic member IsEmptyValueType
Public methodStatic member NeedToValidateRule Overloaded. Checks if the rule is marked to be validated.
Public method OnValidationCompleted
Public methodStatic member ReferenceEquals Determines whether the specified System.Object instances are the same instance. (Inherited from System.Object)
Public method RegisterRules Adds validation rules of the class given as a parameter to the RuleSet.
Public method ToString Returns a System.String that represents the current System.Object. (Inherited from System.Object)
Public method Validate Overloaded. Validates an object against RuleSet's rules with the given validation contexts, returns a result and throws a ValidationException if the validation fails.
Public method ValidateAll Overloaded. Validates multiple objects against RuleSet's rules with the given validation contexts, returns a result and throws a ValidationException if the validation fails.
Public method ValidateAllTargets Overloaded. Silently (without raising the ValidationCompleted event and throwing the ValidationException) validates multiple targets and returns the result.
Public methodStatic member ValidateRule Checks a rule on a target and returns a result.
Public method ValidateTarget Silently validates an object (without raising the ValidationCompleted event and throwing the ValidationException) and returns a result.
Top

Expanded Public Fields

Show: Inherited
  Name Description
Public fieldStatic member NonEmptyValueTypes
Top

Expanded Public Events

Show: Inherited
  Name Description
Public eventStatic member CustomIsEmptyValue Occurs when the IsEmptyValue method is executed to determine whether or not the property value is considered empty.
Public eventStatic member CustomIsEmptyValueType
Public eventStatic member CustomNeedToValidateRule Occurs when the validation system determines whether or not a rule should be validated.
Public eventStatic member CustomValidateRule Occurs when a rule is being validated.
Public eventStatic member RuleValidated Occurs after the validation of a rule is complete.
Public event ValidationCompleted Occurs after validation of an entire RuleSet is complete.
Top

Expanded See Also

How would you rate this topic?​​​​​​​