Share via


ValidationRuleSet Class

Definition

The rule set of the validation.

public sealed class ValidationRuleSet : System.Collections.Generic.IEnumerable<Microsoft.OpenApi.Validations.ValidationRule>
type ValidationRuleSet = class
    interface seq<ValidationRule>
    interface IEnumerable
Public NotInheritable Class ValidationRuleSet
Implements IEnumerable(Of ValidationRule)
Inheritance
ValidationRuleSet
Implements

Constructors

ValidationRuleSet()

Initializes a new instance of the ValidationRuleSet class.

ValidationRuleSet(IEnumerable<ValidationRule>)

Initializes a new instance of the ValidationRuleSet class.

ValidationRuleSet(ValidationRuleSet)

Initializes a new instance of the ValidationRuleSet class.

Properties

Rules

Gets the rules in this rule set.

Methods

Add(ValidationRule)

Add the new rule into the rule set.

FindRules(Type)

Retrieve the rules that are related to a specific type

GetDefaultRuleSet()

Gets the default validation rule sets.

GetEmptyRuleSet()

Return Ruleset with no rules

GetEnumerator()

Get the enumerator.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Get the enumerator.

Applies to