ModelValidatorProviderCollection Class

Definition

No content here will be updated; please do not add material here.

public class ModelValidatorProviderCollection : System.Collections.ObjectModel.Collection<System.Web.Mvc.ModelValidatorProvider>
type ModelValidatorProviderCollection = class
    inherit Collection<ModelValidatorProvider>
Public Class ModelValidatorProviderCollection
Inherits Collection(Of ModelValidatorProvider)
Inheritance
ModelValidatorProviderCollection

Constructors

ModelValidatorProviderCollection()

Initializes a new instance of the ModelValidatorProviderCollection class.

ModelValidatorProviderCollection(IList<ModelValidatorProvider>)

Initializes a new instance of the ModelValidatorProviderCollection class using a list of model-validation providers.

Methods

ClearItems()

Removes all elements from the collection.

GetValidators(ModelMetadata, ControllerContext)

Returns the list of model validators.

InsertItem(Int32, ModelValidatorProvider)

Inserts a model-validator provider into the collection.

RemoveItem(Int32)

Removes the element at the specified index of the collection.

SetItem(Int32, ModelValidatorProvider)

Replaces the model-validator provider element at the specified index.

Applies to