Controller.UpdateModel Method

Definition

Overloads

UpdateModel<TModel>(TModel, String, String[], String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, a list of properties to exclude, and a list of properties to include.

UpdateModel<TModel>(TModel, String, String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.

UpdateModel<TModel>(TModel, String, String[], String[])

Updates the specified model instance using values from the controller's current value provider, a prefix, a list of properties to exclude, and a list of properties to include.

UpdateModel<TModel>(TModel, String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.

UpdateModel<TModel>(TModel, String, String[])

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

UpdateModel<TModel>(TModel, IValueProvider)

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

UpdateModel<TModel>(TModel, String[])

Updates the specified model instance using values from the controller object's current value provider.

UpdateModel<TModel>(TModel, String)

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

UpdateModel<TModel>(TModel)

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

UpdateModel<TModel>(TModel, String, IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.

UpdateModel<TModel>(TModel, String, String[], String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, a list of properties to exclude, and a list of properties to include.

protected internal void UpdateModel<TModel> (TModel model, string prefix, string[] includeProperties, string[] excludeProperties, System.Web.Mvc.IValueProvider valueProvider) where TModel : class;
member this.UpdateModel : 'Model * string * string[] * string[] * System.Web.Mvc.IValueProvider -> unit (requires 'Model : null)
Protected Friend Sub UpdateModel(Of TModel As Class) (model As TModel, prefix As String, includeProperties As String(), excludeProperties As String(), valueProvider As IValueProvider)

Type Parameters

TModel

The type of the model object.

Parameters

model
TModel

The model instance to update.

prefix
String

The prefix to use when looking up values in the value provider.

includeProperties
String[]

A list of properties of the model to update.

excludeProperties
String[]

A list of properties to explicitly exclude from the update. These are excluded even if they are listed in the includeProperties parameter list.

valueProvider
IValueProvider

A dictionary of values that is used to update the model.

Applies to

UpdateModel<TModel>(TModel, String, String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.

protected internal void UpdateModel<TModel> (TModel model, string prefix, string[] includeProperties, System.Web.Mvc.IValueProvider valueProvider) where TModel : class;
member this.UpdateModel : 'Model * string * string[] * System.Web.Mvc.IValueProvider -> unit (requires 'Model : null)
Protected Friend Sub UpdateModel(Of TModel As Class) (model As TModel, prefix As String, includeProperties As String(), valueProvider As IValueProvider)

Type Parameters

TModel

The type of the model object.

Parameters

model
TModel

The model instance to update.

prefix
String

The prefix to use when looking up values in the value provider.

includeProperties
String[]

A list of properties of the model to update.

valueProvider
IValueProvider

A dictionary of values that is used to update the model.

Applies to

UpdateModel<TModel>(TModel, String, String[], String[])

Updates the specified model instance using values from the controller's current value provider, a prefix, a list of properties to exclude, and a list of properties to include.

protected internal void UpdateModel<TModel> (TModel model, string prefix, string[] includeProperties, string[] excludeProperties) where TModel : class;
member this.UpdateModel : 'Model * string * string[] * string[] -> unit (requires 'Model : null)
Protected Friend Sub UpdateModel(Of TModel As Class) (model As TModel, prefix As String, includeProperties As String(), excludeProperties As String())

Type Parameters

TModel

The type of the model object.

Parameters

model
TModel

The model instance to update.

prefix
String

A prefix to use when looking up values in the value provider.

includeProperties
String[]

A list of properties of the model to update.

excludeProperties
String[]

A list of properties to explicitly exclude from the update. These are excluded even if they are listed in the includeProperties list.

Applies to

UpdateModel<TModel>(TModel, String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.

protected internal void UpdateModel<TModel> (TModel model, string[] includeProperties, System.Web.Mvc.IValueProvider valueProvider) where TModel : class;
member this.UpdateModel : 'Model * string[] * System.Web.Mvc.IValueProvider -> unit (requires 'Model : null)
Protected Friend Sub UpdateModel(Of TModel As Class) (model As TModel, includeProperties As String(), valueProvider As IValueProvider)

Type Parameters

TModel

The type of the model object.

Parameters

model
TModel

The model instance to update.

includeProperties
String[]

A list of properties of the model to update.

valueProvider
IValueProvider

A dictionary of values that is used to update the model.

Applies to

UpdateModel<TModel>(TModel, String, String[])

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

protected internal void UpdateModel<TModel> (TModel model, string prefix, string[] includeProperties) where TModel : class;
member this.UpdateModel : 'Model * string * string[] -> unit (requires 'Model : null)
Protected Friend Sub UpdateModel(Of TModel As Class) (model As TModel, prefix As String, includeProperties As String())

Type Parameters

TModel

The type of the model object.

Parameters

model
TModel

The model instance to update.

prefix
String

A prefix to use when looking up values in the value provider.

includeProperties
String[]

A list of properties of the model to update.

Applies to

UpdateModel<TModel>(TModel, IValueProvider)

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

protected internal void UpdateModel<TModel> (TModel model, System.Web.Mvc.IValueProvider valueProvider) where TModel : class;
member this.UpdateModel : 'Model * System.Web.Mvc.IValueProvider -> unit (requires 'Model : null)
Protected Friend Sub UpdateModel(Of TModel As Class) (model As TModel, valueProvider As IValueProvider)

Type Parameters

TModel

The type of the model object.

Parameters

model
TModel

The model instance to update.

valueProvider
IValueProvider

A dictionary of values that is used to update the model.

Applies to

UpdateModel<TModel>(TModel, String[])

Updates the specified model instance using values from the controller object's current value provider.

protected internal void UpdateModel<TModel> (TModel model, string[] includeProperties) where TModel : class;
member this.UpdateModel : 'Model * string[] -> unit (requires 'Model : null)
Protected Friend Sub UpdateModel(Of TModel As Class) (model As TModel, includeProperties As String())

Type Parameters

TModel

The type of the model object.

Parameters

model
TModel

The model instance to update.

includeProperties
String[]

A list of properties of the model to update.

Applies to

UpdateModel<TModel>(TModel, String)

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

protected internal void UpdateModel<TModel> (TModel model, string prefix) where TModel : class;
member this.UpdateModel : 'Model * string -> unit (requires 'Model : null)
Protected Friend Sub UpdateModel(Of TModel As Class) (model As TModel, prefix As String)

Type Parameters

TModel

The type of the model object.

Parameters

model
TModel

The model instance to update.

prefix
String

A prefix to use when looking up values in the value provider.

Applies to

UpdateModel<TModel>(TModel)

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

protected internal void UpdateModel<TModel> (TModel model) where TModel : class;
member this.UpdateModel : 'Model -> unit (requires 'Model : null)
Protected Friend Sub UpdateModel(Of TModel As Class) (model As TModel)

Type Parameters

TModel

The type of the model object.

Parameters

model
TModel

The model instance to update.

Applies to

UpdateModel<TModel>(TModel, String, IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.

protected internal void UpdateModel<TModel> (TModel model, string prefix, System.Web.Mvc.IValueProvider valueProvider) where TModel : class;
member this.UpdateModel : 'Model * string * System.Web.Mvc.IValueProvider -> unit (requires 'Model : null)
Protected Friend Sub UpdateModel(Of TModel As Class) (model As TModel, prefix As String, valueProvider As IValueProvider)

Type Parameters

TModel

The type of the model object.

Parameters

model
TModel

The model instance to update.

prefix
String

A list of properties of the model to update.

valueProvider
IValueProvider

A dictionary of values that is used to update the model.

Applies to