EnumTypeModelBinder.CheckModel 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.
If the model
is null
, verifies that it is allowed to be null
,
otherwise notifies the ModelBindingContext.ModelState about the invalid valueProviderResult
.
Sets the P:ModelBindingContext.Result to the model
if successful.
protected:
override void CheckModel(Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext ^ bindingContext, Microsoft::AspNetCore::Mvc::ModelBinding::ValueProviderResult valueProviderResult, System::Object ^ model);
protected override void CheckModel (Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult valueProviderResult, object model);
protected override void CheckModel (Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult valueProviderResult, object? model);
override this.CheckModel : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext * Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult * obj -> unit
Protected Overrides Sub CheckModel (bindingContext As ModelBindingContext, valueProviderResult As ValueProviderResult, model As Object)
Parameters
- bindingContext
- ModelBindingContext
- valueProviderResult
- ValueProviderResult
- model
- Object
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for