ModelValidator.GetModelValidator Method
Returns a composite model validator for the model.
Namespace: System.Web.Http.Validation
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Shared Function GetModelValidator ( _
validatorProviders As IEnumerable(Of ModelValidatorProvider) _
) As ModelValidator
'Usage
Dim validatorProviders As IEnumerable(Of ModelValidatorProvider)
Dim returnValue As ModelValidator
returnValue = ModelValidator.GetModelValidator(validatorProviders)
public static ModelValidator GetModelValidator(
IEnumerable<ModelValidatorProvider> validatorProviders
)
public:
static ModelValidator^ GetModelValidator(
IEnumerable<ModelValidatorProvider^>^ validatorProviders
)
static member GetModelValidator :
validatorProviders:IEnumerable<ModelValidatorProvider> -> ModelValidator
public static function GetModelValidator(
validatorProviders : IEnumerable<ModelValidatorProvider>
) : ModelValidator
Parameters
validatorProviders
Type: System.Collections.Generic.IEnumerable<ModelValidatorProvider>An enumeration of validator providers.
Return Value
Type: System.Web.Http.Validation.ModelValidator
A composite model validator for the model.