UserControl.UpdateModel<TModel> Method (TModel)

.NET Framework (current version)
 

Updates the model instance by using values from the data-bound control.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public virtual void UpdateModel<TModel>(
	TModel model
)
where TModel : class

Parameters

model
Type: TModel

The model instance to update.

Type Parameters

TModel

The type of the model object.

Exception Condition
InvalidOperationException

The model instance was not updated successfully.

.NET Framework
Available since 4.5
Return to top
Show: