ValidationResultsCollection Class

Represents a collection of ValidationResult entries.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
[SerializableAttribute]
public sealed class ValidationResultsCollection : Collection<ValidationResult>
Inheritance
Object    CollectionValidationResult    ValidationResultsCollection

Constructors

ValidationResultsCollection Initializes a new instance of the ValidationResultsCollection class.

Properties

Errors Gets a read-only ValidationResultsCollection containing ValidationResult entries with Error severities.
HasErrors Gets whether this ValidationResultsCollection has errors.
HasInfos Gets whether this ValidationResultsCollection has information entries.
HasWarnings Gets whether this ValidationResultsCollection has warnings.
Infos Gets the validation results denoting an information.
ItemString Gets the validation results for the specified propertyName.
ItemString, NullableValidationSeverity Gets the validation results for the specified propertyName and severity.
Message Gets a single combined String that contains all messages in this ValidationResultsCollection.
Warnings Gets the validation results denoting a warning.= as a read-only ValidationResultsCollection.

Methods

AddError Adds an error to this ValidationResultsCollection.
AddInfo Adds an information to this ValidationResultsCollection.
AddWarning Adds a warning to this ValidationResultsCollection.
ToString Gets the string representation of this ValidationResultsCollection instance.
(Overrides ObjectToString)
TryGetFirstWithHighestSeverity Gets the first ValidationResult with highest severity, optionally using the specified propertyName, or , if no such ValidationResult exists.

Fields

Empty Gets an empty, immutable ValidationResultsCollection. This field is read-only.

Extension Methods

Convert Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions)
ConvertTTarget Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions)
In Gets whether item is among the elements of set.
See the Examples section of the generic InT(T, T) overload for an example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)

See Also