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: 5.0.0-rc.1
Syntax

public 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 propertyCount (Inherited from CollectionValidationResult.)
Public propertyErrors
Gets the validation results denoting an error.
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 propertyItemInt32
Gets or sets the element at the specified index.
(Inherited from CollectionValidationResult.)
Public propertyItemString, NullableValidationSeverity
Gets the validation results for the specified propertyName and severity.
Protected propertyItems (Inherited from CollectionValidationResult.)
Public propertyWarnings
Gets the validation results denoting a warning.
Top
Methods

  NameDescription
Public methodAdd (Inherited from CollectionValidationResult.)
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 methodClear (Inherited from CollectionValidationResult.)
Protected methodClearItems
Removes all elements from the ValidationResultsCollection.
(Overrides CollectionTClearItems.)
Public methodContains (Inherited from CollectionValidationResult.)
Public methodCopyTo (Inherited from CollectionValidationResult.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator (Inherited from CollectionValidationResult.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf (Inherited from CollectionValidationResult.)
Public methodInsert (Inherited from CollectionValidationResult.)
Protected methodInsertItem
Inserts an element into the ValidationResultsCollection at the specified index.
(Overrides CollectionTInsertItem(Int32, T).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove (Inherited from CollectionValidationResult.)
Public methodRemoveAt (Inherited from CollectionValidationResult.)
Protected methodRemoveItem (Inherited from CollectionValidationResult.)
Protected methodSetItem
Replaces the element at the specified index.
(Overrides CollectionTSetItem(Int32, T).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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.
(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.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, CultureInfo, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(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