ModelValidatorProvider.GetValidators Method
Gets a list of validators associated with this ModelValidatorProvider.
Namespace: System.Web.Http.Validation
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public MustOverride Function GetValidators ( _
metadata As ModelMetadata, _
validatorProviders As IEnumerable(Of ModelValidatorProvider) _
) As IEnumerable(Of ModelValidator)
'Usage
Dim instance As ModelValidatorProvider
Dim metadata As ModelMetadata
Dim validatorProviders As IEnumerable(Of ModelValidatorProvider)
Dim returnValue As IEnumerable(Of ModelValidator)
returnValue = instance.GetValidators(metadata, _
validatorProviders)
public abstract IEnumerable<ModelValidator> GetValidators(
ModelMetadata metadata,
IEnumerable<ModelValidatorProvider> validatorProviders
)
public:
virtual IEnumerable<ModelValidator^>^ GetValidators(
ModelMetadata^ metadata,
IEnumerable<ModelValidatorProvider^>^ validatorProviders
) abstract
abstract GetValidators :
metadata:ModelMetadata *
validatorProviders:IEnumerable<ModelValidatorProvider> -> IEnumerable<ModelValidator>
public abstract function GetValidators(
metadata : ModelMetadata,
validatorProviders : IEnumerable<ModelValidatorProvider>
) : IEnumerable<ModelValidator>
Parameters
metadata
Type: System.Web.Http.Metadata.ModelMetadataThe metadata.
validatorProviders
Type: System.Collections.Generic.IEnumerable<ModelValidatorProvider>The validator providers.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelValidator>
The list of validators.