IModelValidator.Validate(ModelValidationContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- context
- ModelValidationContext
Returns
A list of ModelValidationResult indicating the results of validating the model value.