Share via


ValidationRuleSet.FindRules(Type) Method

Definition

Retrieve the rules that are related to a specific type

public System.Collections.Generic.IList<Microsoft.OpenApi.Validations.ValidationRule> FindRules (Type type);
member this.FindRules : Type -> System.Collections.Generic.IList<Microsoft.OpenApi.Validations.ValidationRule>
Public Function FindRules (type As Type) As IList(Of ValidationRule)

Parameters

type
Type

The type that is to be validated

Returns

Either the rules related to the type, or an empty list.

Applies to