ModelMetadata.GetValidators Method
Gets a list of validators for the model.
Namespace: System.Web.Http.Metadata
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Function GetValidators ( _
validatorProviders As IEnumerable(Of ModelValidatorProvider) _
) As IEnumerable(Of ModelValidator)
'Usage
Dim instance As ModelMetadata
Dim validatorProviders As IEnumerable(Of ModelValidatorProvider)
Dim returnValue As IEnumerable(Of ModelValidator)
returnValue = instance.GetValidators(validatorProviders)
public virtual IEnumerable<ModelValidator> GetValidators(
IEnumerable<ModelValidatorProvider> validatorProviders
)
public:
virtual IEnumerable<ModelValidator^>^ GetValidators(
IEnumerable<ModelValidatorProvider^>^ validatorProviders
)
abstract GetValidators :
validatorProviders:IEnumerable<ModelValidatorProvider> -> IEnumerable<ModelValidator>
override GetValidators :
validatorProviders:IEnumerable<ModelValidatorProvider> -> IEnumerable<ModelValidator>
public function GetValidators(
validatorProviders : IEnumerable<ModelValidatorProvider>
) : IEnumerable<ModelValidator>
Parameters
validatorProviders
Type: System.Collections.Generic.IEnumerable<ModelValidatorProvider>The validator providers for the model.
Return Value
Type: System.Collections.Generic.IEnumerable<ModelValidator>
A list of validators for the model.