ModelStateDictionary.SetModelValue Method (String, ValueProviderResult)

 

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

Namespace:   System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)

public void SetModelValue(
	string key,
	ValueProviderResult value
)

Parameters

key
Type: System.String

The key.

value
Type: System.Web.Http.ValueProviders.ValueProviderResult

The value.

Return to top
Show: