nspectre - declarative validation for .NET

ValidationErrorCollection.GetErrorsByKey Method 

Iterates over the ValidationErrorCollection and returns all ValidationError objects whose key match the requested key

public ValidationErrorCollection GetErrorsByKey(
   string key
);

Parameters

key
The key to match against ValidationError.Key

Return Value

The collection of ValidationError objects

See Also

ValidationErrorCollection Class | NSpectre.Core Namespace