Class ValidatorCollection
Represents validator collection.
Inheritance
Namespace: Mediachase.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 14.26.0Syntax
public class ValidatorCollection : Collection<IValidator>
Constructors
ValidatorCollection()
Initializes a new instance of the ValidatorCollection class.
Declaration
public ValidatorCollection()
ValidatorCollection(Object)
Initializes a new instance of the ValidatorCollection class.
Declaration
public ValidatorCollection(object owner)
Parameters
Type | Name | Description |
---|---|---|
System.Object | owner | The owner. |
Methods
ClearItems()
Performs additional custom processes when clearing the contents of the System.Collections.CollectionBase instance.
Declaration
protected override void ClearItems()
InsertItem(Int32, IValidator)
Performs additional custom processes after inserting a new element into the System.Collections.CollectionBase instance.
Declaration
protected override void InsertItem(int index, IValidator item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which to insert value. |
IValidator | item | The object to insert. The value can be null for reference types. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
RemoveItem(Int32)
Performs additional custom processes after removing an element from the System.Collections.CollectionBase instance.
Declaration
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which value can be found. |
SetItem(Int32, IValidator)
Performs additional custom processes after setting a value in the System.Collections.CollectionBase instance.
Declaration
protected override void SetItem(int index, IValidator item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which oldValue can be found. |
IValidator | item | The new value for the element at the specified index. The value can be null for reference types. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|