Page.UpdateModel<TModel> Method (TModel, IValueProvider)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Updates the specified model instance using values from a specified value provider.

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

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

Parameters

model
Type: TModel

The model.

valueProvider
Type: System.Web.ModelBinding.IValueProvider

The value provider.

Type Parameters

TModel

The type of the model.

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

.NET Framework
Available since 4.5
Return to top
Show: