Partager via


ModelStateDictionary.SetModelValue Method

Sets the value for the specified key by using the specified value provider dictionary.

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

Syntax

'Declaration
Public Sub SetModelValue ( _
    key As String, _
    value As ValueProviderResult _
)
public void SetModelValue(
    string key,
    ValueProviderResult value
)
public:
void SetModelValue(
    String^ key, 
    ValueProviderResult^ value
)

Parameters

See Also

Reference

ModelStateDictionary Class

System.Web.Mvc Namespace