ModelStateDictionary.SetModelValue Method

Visual Studio 2010

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)

public void SetModelValue(
	string key,
	ValueProviderResult value
)

Parameters

key
Type: System.String
The key.
value
Type: System.Web.Mvc.ValueProviderResult
The value.

Community Additions

ADD
Show: