[]
Represents a collection of validation rules that can be individually accessed by index.
public class ValidationRuleCollection : IList<ValidationRule>, ICollection<ValidationRule>, IEnumerable<ValidationRule>, IEnumerable
Name | Description |
---|---|
Count | Gets the number of elements contained in the ValidationRuleCollection. |
IsReadOnly | Gets a value indicating whether the ValidationRuleCollection is read-only. |
this[int] | Gets or sets the element at the specified index. |
Name | Description |
---|---|
Add(ValidationRule) | Adds an item to the ValidationRuleCollection. |
AddRange(IEnumerable<ValidationRule>) | Adds the elements of the specified collection to the end of the ValidationRuleCollection. |
Clear() | Removes all items from the ValidationRuleCollection. |
Contains(ValidationRule) | Determines whether the ValidationRuleCollection contains a specific value. |
CopyTo(ValidationRule[], int) | Copies the elements of the ValidationRuleCollection to an Array, starting at a particular Array index. |
GetEnumerator() | Returns an enumerator that iterates through the collection. |
IndexOf(ValidationRule) | Determines the index of a specific ValidationRule> in the ValidationRuleCollection. |
Insert(int, ValidationRule) | Inserts an item to the ValidationRuleCollection at the specified index. |
Remove(ValidationRule) | Removes the first occurrence of a specific object from the ValidationRuleCollection. |
RemoveAt(int) | Removes the ValidationRuleCollection item at the specified index. |