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)
Syntax
public void SetModelValue(
string key,
ValueProviderResult value
)
public:
void SetModelValue(
String^ key,
ValueProviderResult^ value
)
member SetModelValue :
key:string *
value:ValueProviderResult -> unit
Public Sub SetModelValue (
key As String,
value As ValueProviderResult
)
Parameters
key
Type: System.StringThe key.
value
Type: System.Web.Http.ValueProviders.ValueProviderResultThe value.
See Also
ModelStateDictionary Class
System.Web.Http.ModelBinding Namespace
Return to top