DataMemberModelValidatorProvider.GetValidators Method (ModelMetadata, IEnumerable<ModelValidatorProvider>, IEnumerable<Attribute>)
Gets the validators for the model.
Namespace: System.Web.Http.Validation.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Protected Overrides Function GetValidators ( _
metadata As ModelMetadata, _
validatorProviders As IEnumerable(Of ModelValidatorProvider), _
attributes As IEnumerable(Of Attribute) _
) As IEnumerable(Of ModelValidator)
'Usage
Dim metadata As ModelMetadata
Dim validatorProviders As IEnumerable(Of ModelValidatorProvider)
Dim attributes As IEnumerable(Of Attribute)
Dim returnValue As IEnumerable(Of ModelValidator)
returnValue = Me.GetValidators(metadata, _
validatorProviders, attributes)
protected override IEnumerable<ModelValidator> GetValidators(
ModelMetadata metadata,
IEnumerable<ModelValidatorProvider> validatorProviders,
IEnumerable<Attribute> attributes
)
protected:
virtual IEnumerable<ModelValidator^>^ GetValidators(
ModelMetadata^ metadata,
IEnumerable<ModelValidatorProvider^>^ validatorProviders,
IEnumerable<Attribute^>^ attributes
) override
abstract GetValidators :
metadata:ModelMetadata *
validatorProviders:IEnumerable<ModelValidatorProvider> *
attributes:IEnumerable<Attribute> -> IEnumerable<ModelValidator>
override GetValidators :
metadata:ModelMetadata *
validatorProviders:IEnumerable<ModelValidatorProvider> *
attributes:IEnumerable<Attribute> -> IEnumerable<ModelValidator>
protected override function GetValidators(
metadata : ModelMetadata,
validatorProviders : IEnumerable<ModelValidatorProvider>,
attributes : IEnumerable<Attribute>
) : IEnumerable<ModelValidator>
Parameters
metadata
Type: System.Web.Http.Metadata.ModelMetadataThe metadata.
validatorProviders
Type: System.Collections.Generic.IEnumerable<ModelValidatorProvider>An enumerator of validator providers.
attributes
Type: System.Collections.Generic.IEnumerable<Attribute>A list of attributes.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelValidator>
The validators for the model.