ModelValidatorProviderCollection ModelValidatorProviderCollection 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
ModelValidatorProviderCollectionModelValidatorProviderCollectionModelValidatorProviderCollection

Constructors

ModelValidatorProviderCollection() ModelValidatorProviderCollection() ModelValidatorProviderCollection()

Initializes a new instance of the ModelValidatorProviderCollection class.

ModelValidatorProviderCollection(IList<ModelValidatorProvider>) ModelValidatorProviderCollection(IList<ModelValidatorProvider>) ModelValidatorProviderCollection(IList<ModelValidatorProvider>)

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

Methods

ClearItems() ClearItems() ClearItems()

Removes all elements from the collection.

GetValidators(ModelMetadata, ControllerContext) GetValidators(ModelMetadata, ControllerContext) GetValidators(ModelMetadata, ControllerContext)

Returns the list of model validators.

InsertItem(Int32, ModelValidatorProvider) InsertItem(Int32, ModelValidatorProvider) InsertItem(Int32, ModelValidatorProvider)

Inserts a model-validator provider into the collection.

RemoveItem(Int32) RemoveItem(Int32) RemoveItem(Int32)

Removes the element at the specified index of the collection.

SetItem(Int32, ModelValidatorProvider) SetItem(Int32, ModelValidatorProvider) SetItem(Int32, ModelValidatorProvider)

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

Applies to