IModelValidator.Validate(ModelValidationContext) Method

Definition

Validates the model value.

public:
 System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ModelValidationResult ^> ^ Validate(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ModelValidationContext ^ context);
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationResult> Validate (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContext context);
abstract member Validate : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContext -> seq<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationResult>
Public Function Validate (context As ModelValidationContext) As IEnumerable(Of ModelValidationResult)

Parameters

Returns

A list of ModelValidationResult indicating the results of validating the model value.

Applies to