ValidationErrorCollection Class

Definition

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

[System.Runtime.InteropServices.Guid("287DFF2E-4C90-4907-B235-A7C2CBE0706B")]
public sealed class ValidationErrorCollection : System.Collections.IList
[<System.Runtime.InteropServices.Guid("287DFF2E-4C90-4907-B235-A7C2CBE0706B")>]
type ValidationErrorCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public NotInheritable Class ValidationErrorCollection
Implements IList
Inheritance
ValidationErrorCollection
Attributes
Implements

Constructors

ValidationErrorCollection()

Properties

Count

Gets the number of elements contained in the collection.

Item[Int32]

Gets or sets the ValidationError element at the specified index.

Methods

Add(IModelComponent, String)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

Add(IModelComponent, String, ErrorPriority)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

Add(IModelComponent, String, ErrorPriority, Int32)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

Add(IModelComponent, String, Int32)

Creates a new ValidationError object using the specified source and error information and adds it to the end of the collection.

Add(ValidationError)

Adds the specified ValidationError to the end of the collection.

AddRange(ICollection)

Adds the set of specified elements to the end of the collection.

Clear()

Removes all items from the collection.

Contains(ValidationError)

Determines whether the specified ValidationError exists in the collection.

CopyTo(Array, Int32)

Copies the elements of the collection to an Array, starting at a particular Array index.

IndexOf(ValidationError)

Searches for the specified ValidationError and returns its zero-based index within the collection.

Insert(Int32, ValidationError)

Inserts the specified ValidationError to the collection at the specified index.

Remove(ValidationError)

Removes the specified ValidationError from this collection.

RemoveAt(Int32)

Removes the ValidationError at the specified index.

Explicit Interface Implementations

ICollection.IsSynchronized
ICollection.SyncRoot
IEnumerable.GetEnumerator()
IList.Add(Object)
IList.Contains(Object)
IList.IndexOf(Object)
IList.Insert(Int32, Object)
IList.IsFixedSize
IList.IsReadOnly
IList.Item[Int32]
IList.Remove(Object)

Applies to