Controller::TryUpdateModel<TModel> Method (TModel, array<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)
protected public: generic<typename TModel> where TModel : ref class bool TryUpdateModel( TModel model, array<String^>^ includeProperties )
Type Parameters
- TModel
The type of the model object.
Parameters
- model
- Type: TModel
The model instance to update.
- includeProperties
- Type: array<System::String>
A list of properties of the model to update.
Show: