ModelValidatorProviderCollection Class

Provides a container for a list of validation providers.

Inheritance Hierarchy

System.Object
  System.Collections.ObjectModel.Collection<ModelValidatorProvider>
    System.Web.Mvc.ModelValidatorProviderCollection

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Class ModelValidatorProviderCollection _
    Inherits Collection(Of ModelValidatorProvider)
'Usage
Dim instance As ModelValidatorProviderCollection
public class ModelValidatorProviderCollection : Collection<ModelValidatorProvider>
public ref class ModelValidatorProviderCollection : public Collection<ModelValidatorProvider^>
type ModelValidatorProviderCollection =  
    class 
        inherit Collection<ModelValidatorProvider>
    end
public class ModelValidatorProviderCollection extends Collection<ModelValidatorProvider>

The ModelValidatorProviderCollection type exposes the following members.

Constructors

  Name Description
Public method ModelValidatorProviderCollection() Initializes a new instance of the ModelValidatorProviderCollection class.
Public method ModelValidatorProviderCollection(IList<ModelValidatorProvider>) Initializes a new instance of the ModelValidatorProviderCollection class using a list of model-validation providers.

Top

Properties

  Name Description
Public property Count (Inherited from Collection<ModelValidatorProvider>.)
Public property Item (Inherited from Collection<ModelValidatorProvider>.)
Protected property Items (Inherited from Collection<ModelValidatorProvider>.)

Top

Methods

  Name Description
Public method Add (Inherited from Collection<ModelValidatorProvider>.)
Public method Clear (Inherited from Collection<ModelValidatorProvider>.)
Protected method ClearItems (Inherited from Collection<ModelValidatorProvider>.)
Public method Contains (Inherited from Collection<ModelValidatorProvider>.)
Public method CopyTo (Inherited from Collection<ModelValidatorProvider>.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator (Inherited from Collection<ModelValidatorProvider>.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetValidators Returns the list of model validators.
Public method IndexOf (Inherited from Collection<ModelValidatorProvider>.)
Public method Insert (Inherited from Collection<ModelValidatorProvider>.)
Protected method InsertItem Inserts a model-validator provider into the collection. (Overrides Collection<T>.InsertItem(Int32, T).)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove (Inherited from Collection<ModelValidatorProvider>.)
Public method RemoveAt (Inherited from Collection<ModelValidatorProvider>.)
Protected method RemoveItem (Inherited from Collection<ModelValidatorProvider>.)
Protected method SetItem Replaces the model-validator provider element at the specified index. (Overrides Collection<T>.SetItem(Int32, T).)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate method IList.Contains (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate method IList.Insert (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate property ICollection<T>.IsReadOnly (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate property IList.Item (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate method IList.Remove (Inherited from Collection<ModelValidatorProvider>.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from Collection<ModelValidatorProvider>.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Mvc Namespace