ValidationRuleSet.FindRules(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.