ComplexTypeModelBinder.SetProperty 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.
Updates a property in the current Model.
protected:
virtual void SetProperty(Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext ^ bindingContext, System::String ^ modelName, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ propertyMetadata, Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingResult result);
protected virtual void SetProperty (Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, string modelName, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata propertyMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult result);
abstract member SetProperty : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult -> unit
override this.SetProperty : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult -> unit
Protected Overridable Sub SetProperty (bindingContext As ModelBindingContext, modelName As String, propertyMetadata As ModelMetadata, result As ModelBindingResult)
Parameters
- bindingContext
- ModelBindingContext
The ModelBindingContext.
- modelName
- String
The model name.
- propertyMetadata
- ModelMetadata
The ModelMetadata for the property to set.
- result
- ModelBindingResult
The ModelBindingResult for the property's new value.
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