Sdílet prostřednictvím


ValidationErrorCollection Members

Include Protected Members
Include Inherited Members

Contains a collection of ValidationError objects. This class cannot be inherited.

The ValidationErrorCollection type exposes the following members.

Constructors

  Name Description
Public method ValidationErrorCollection() Initializes a new instance of ValidationError.

Top

Methods

  Name Description
Public method Add(ValidationError) Adds a ValidationError to the end of the collection.
Public method Add(IModelComponent, String) Creates and adds a ValidationError, with the specified IModelComponent value and error description, to the end of the collection.
Public method Add(IModelComponent, String, ErrorPriority) Creates and adds a ValidationError, with the specified IModelComponent value, error description, and ErrorPriority value, to the end of the collection.
Public method Add(IModelComponent, String, Int32) Creates and adds a ValidationError, with the specified IModelComponent value, error description, and error code, to the end of the collection.
Public method Add(IModelComponent, String, ErrorPriority, Int32) Creates and adds a ValidationError, with the specified IModelComponent value, error description, ErrorPriority value, and error code, to the end of the collection.
Public method AddRange(ICollection) Adds the elements of a ICollection to the end of the collection.
Public method Clear() Removes all elements from the collection.
Public method Contains(ValidationError) Indicates whether the collection contains a specified ValidationError.
Public method CopyTo(Array, Int32) Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.
Public method Equals(Object) (Inherited from Object.)
Protected method Finalize() (Inherited from Object.)
Public method GetHashCode() (Inherited from Object.)
Public method GetType() (Inherited from Object.)
Public method IndexOf(ValidationError) Gets the index of a specified ValidationError.
Public method Insert(Int32, ValidationError) Inserts a ValidationError into the collection at the specified index.
Protected method MemberwiseClone() (Inherited from Object.)
Public method Remove(ValidationError) Removes the specified ValidationError from the collection.
Public method RemoveAt(Int32) Removes the ValidationError at the specified index from the collection.
Public method ToString() (Inherited from Object.)

Top

Properties

  Name Description
Public property Count Gets the number of ValidationError objects in the collection.
Public property Item[Int32] Gets the ValidationError at the specified index.

Top