Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Controller.TryUpdateModel(TModel) Method (TModel, String[])

Updates the specified model instance using values from the controller's current value provider and included properties.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
JScript does not support generic types and methods.

Type Parameters


The type of the model object.


Type: TModel
The model instance to update.
Type: System.String[]
A list of properties of the model to update.

Return Value

Type: System.Boolean
true if the update is successful; otherwise, false.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.