Share via


ValidationRuleSet.GetDefaultRuleSet Method

Definition

Gets the default validation rule sets.

public static Microsoft.OpenApi.Validations.ValidationRuleSet GetDefaultRuleSet ();
static member GetDefaultRuleSet : unit -> Microsoft.OpenApi.Validations.ValidationRuleSet
Public Shared Function GetDefaultRuleSet () As ValidationRuleSet

Returns

Remarks

This is a method instead of a property to signal that a new default ruleset object is created per call. Making this a property may be misleading callers to think the returned rulesets from multiple calls are the same objects.

Applies to