Represents a collection of ValidationResult entries.
Inheritance Hierarchy
System.Collections.ObjectModelCollectionValidationResult
KGySoft.ComponentModelValidationResultsCollection
Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.5.0-rc.1
Syntax
[SerializableAttribute] public class ValidationResultsCollection : Collection<ValidationResult>
The ValidationResultsCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ValidationResultsCollection |
Initializes a new instance of the ValidationResultsCollection class.
|
Properties
Name | Description | |
---|---|---|
![]() | Errors |
Gets the validation results denoting an error.
|
![]() | 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.
|
![]() | Item |
Gets the validation results for the specified propertyName and severity.
|
![]() | Warnings |
Gets the validation results denoting a warning.
|
Methods
Name | Description | |
---|---|---|
![]() | AddError |
Adds an error to this ValidationResultsCollection.
|
![]() | AddInfo |
Adds an information to this ValidationResultsCollection.
|
![]() | AddWarning |
Adds a warning to this ValidationResultsCollection.
|
![]() | ClearItems |
Removes all elements from the ValidationResultsCollection.
(Overrides CollectionTClearItems.) |
![]() | InsertItem |
Inserts an element into the ValidationResultsCollection at the specified index.
(Overrides CollectionTInsertItem(Int32, T).) |
![]() | SetItem |
Replaces the element at the specified index.
(Overrides CollectionTSetItem(Int32, T).) |
Extension Methods
Name | Description | |
---|---|---|
![]() | Convert(Type, CultureInfo) | Overloaded.
Converts an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example. |
![]() ![]() | ConvertTTarget(CultureInfo) | Overloaded. (Defined by ObjectExtensions.) |
![]() | In |
Gets whether item is among the elements of set.
(Defined by ObjectExtensions.)See the Examples section of the generic InT(T, T) overload for an example. |
![]() | TryConvert(Type, Object) | Overloaded. (Defined by ObjectExtensions.) |
![]() | TryConvert(Type, CultureInfo, Object) | Overloaded. (Defined by ObjectExtensions.) |
![]() | TryConvertTTarget(TTarget) | Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example. |
![]() | TryConvertTTarget(CultureInfo, TTarget) | Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example. |
See Also