Controller.UpdateModel Controller.UpdateModel Controller.UpdateModel Method

Definition

Overloads

UpdateModel<TModel>(TModel, String, String[], String[], IValueProvider) UpdateModel<TModel>(TModel, String, String[], String[], IValueProvider) 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) UpdateModel<TModel>(TModel, String, String[], IValueProvider) 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[]) UpdateModel<TModel>(TModel, String, String[], String[]) 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) UpdateModel<TModel>(TModel, String[], IValueProvider) 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[]) UpdateModel<TModel>(TModel, String, String[]) 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) UpdateModel<TModel>(TModel, IValueProvider) UpdateModel<TModel>(TModel, IValueProvider)

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

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

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

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

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

UpdateModel<TModel>(TModel) UpdateModel<TModel>(TModel) UpdateModel<TModel>(TModel)

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

UpdateModel<TModel>(TModel, String, IValueProvider) UpdateModel<TModel>(TModel, String, IValueProvider) 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) UpdateModel<TModel>(TModel, String, String[], String[], IValueProvider) 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

The model instance to update.

prefix
String String 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 IValueProvider IValueProvider

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

UpdateModel<TModel>(TModel, String, String[], IValueProvider) UpdateModel<TModel>(TModel, String, String[], IValueProvider) 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

The model instance to update.

prefix
String String 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 IValueProvider IValueProvider

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

UpdateModel<TModel>(TModel, String, String[], String[]) UpdateModel<TModel>(TModel, String, String[], String[]) 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

The model instance to update.

prefix
String String 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.

UpdateModel<TModel>(TModel, String[], IValueProvider) UpdateModel<TModel>(TModel, String[], IValueProvider) 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

The model instance to update.

includeProperties
String[]

A list of properties of the model to update.

valueProvider
IValueProvider IValueProvider IValueProvider

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

UpdateModel<TModel>(TModel, String, String[]) UpdateModel<TModel>(TModel, String, String[]) 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

The model instance to update.

prefix
String String String

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

includeProperties
String[]

A list of properties of the model to update.

UpdateModel<TModel>(TModel, IValueProvider) UpdateModel<TModel>(TModel, IValueProvider) 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

The model instance to update.

valueProvider
IValueProvider IValueProvider IValueProvider

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

UpdateModel<TModel>(TModel, String[]) UpdateModel<TModel>(TModel, String[]) 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

The model instance to update.

includeProperties
String[]

A list of properties of the model to update.

UpdateModel<TModel>(TModel, String) UpdateModel<TModel>(TModel, String) 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

The model instance to update.

prefix
String String String

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

UpdateModel<TModel>(TModel) UpdateModel<TModel>(TModel) 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

The model instance to update.

UpdateModel<TModel>(TModel, String, IValueProvider) UpdateModel<TModel>(TModel, String, IValueProvider) 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

The model instance to update.

prefix
String String String

A list of properties of the model to update.

valueProvider
IValueProvider IValueProvider IValueProvider

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

Applies to