KGy SOFT

ValidationResultsCollection Class

KGy SOFT Core Libraries Help
Represents a collection of ValidationResult entries.
Inheritance Hierarchy

SystemObject
  System.Collections.ObjectModelCollectionValidationResult
    KGySoft.ComponentModelValidationResultsCollection

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0
Syntax

[SerializableAttribute]
public sealed class ValidationResultsCollection : Collection<ValidationResult>

The ValidationResultsCollection type exposes the following members.

Constructors

  NameDescription
Public methodValidationResultsCollection
Initializes a new instance of the ValidationResultsCollection class.
Top
Properties

  NameDescription
Public propertyErrors
Gets a read-only ValidationResultsCollection containing ValidationResult entries with Error severities.
Public propertyHasErrors
Gets whether this ValidationResultsCollection has errors.
Public propertyHasInfos
Gets whether this ValidationResultsCollection has information entries.
Public propertyHasWarnings
Gets whether this ValidationResultsCollection has warnings.
Public propertyInfos
Gets the validation results denoting an information.
Public propertyItemString
Gets the validation results for the specified propertyName.
Public propertyItemString, NullableValidationSeverity
Gets the validation results for the specified propertyName and severity.
Public propertyMessage
Gets a single combined String that contains all messages in this ValidationResultsCollection.
Public propertyWarnings
Gets the validation results denoting a warning.= as a read-only ValidationResultsCollection.
Top
Methods

  NameDescription
Public methodAddError
Adds an error to this ValidationResultsCollection.
Public methodAddInfo
Adds an information to this ValidationResultsCollection.
Public methodAddWarning
Adds a warning to this ValidationResultsCollection.
Public methodToString
Gets the string representation of this ValidationResultsCollection instance.
(Overrides ObjectToString.)
Public methodTryGetFirstWithHighestSeverity
Gets the first ValidationResult with highest severity, optionally using the specified propertyName, or , if no such ValidationResult exists.
Top
Fields

  NameDescription
Public fieldStatic memberEmpty
Gets an empty, immutable ValidationResultsCollection. This field is read-only.
Top
Extension Methods

  NameDescription
Public Extension MethodConvert(Type, CultureInfo)Overloaded.
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.)
Public Extension MethodCode exampleConvertTTarget(CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired TTarget.
See the Remarks section for details.
(Defined by ObjectExtensions.)
Public Extension MethodIn (Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, Object)Overloaded.
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.)
Public Extension MethodTryConvert(Type, CultureInfo, Object)Overloaded.
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.)
Public Extension MethodTryConvertTTarget(TTarget)Overloaded.
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.)
Public Extension MethodTryConvertTTarget(CultureInfo, TTarget)Overloaded.
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.)
Top
See Also

Reference