Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 the model instance by using values from the data-bound control.
UpdateModel<TModel>(TModel) |
Updates the model instance by using values from the data-bound control. |
UpdateModel<TModel>(TModel, IValueProvider) |
Updates the specified model instance using values from the value provider of the user control. |
Updates the model instance by using values from the data-bound control.
public:
generic <typename TModel>
where TModel : class virtual void UpdateModel(TModel model);
public virtual void UpdateModel<TModel>(TModel model) where TModel : class;
abstract member UpdateModel : 'Model -> unit (requires 'Model : null)
override this.UpdateModel : 'Model -> unit (requires 'Model : null)
Public Overridable Sub UpdateModel(Of TModel As Class) (model As TModel)
The type of the model object.
The model instance to update.
The model instance was not updated successfully.
Updates the specified model instance using values from the value provider of the user control.
public:
generic <typename TModel>
where TModel : class virtual void UpdateModel(TModel model, System::Web::ModelBinding::IValueProvider ^ valueProvider);
public virtual void UpdateModel<TModel>(TModel model, System.Web.ModelBinding.IValueProvider valueProvider) where TModel : class;
abstract member UpdateModel : 'Model * System.Web.ModelBinding.IValueProvider -> unit (requires 'Model : null)
override this.UpdateModel : 'Model * System.Web.ModelBinding.IValueProvider -> unit (requires 'Model : null)
Public Overridable Sub UpdateModel(Of TModel As Class) (model As TModel, valueProvider As IValueProvider)
The type of the model object.
The model instance to update.
A dictionary of values to use to update the model.
The model instance was not updated successfully.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Please sign in to use this experience.
Sign in