Share via


ValidationRuleSet.TryGetValue(Type, List<ValidationRule>) Method

Definition

Gets the rules associated with the specified key.

public bool TryGetValue(Type key, out System.Collections.Generic.List<Microsoft.OpenApi.ValidationRule>? rules);
member this.TryGetValue : Type * List -> bool
Public Function TryGetValue (key As Type, ByRef rules As List(Of ValidationRule)) As Boolean

Parameters

key
Type

The key whose rules to get.

rules
List<ValidationRule>

When this method returns, the rules associated with the specified key, if the key is found; otherwise, an empty IList<T> object. This parameter is passed uninitialized.

Returns

true if the specified key has rules.

Applies to