Partager via


ModelState.Value Property

Gets a ValueProviderResult object that encapsulates the value that was being bound during model binding.

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

Syntax

'Declaration
Public Property Value As ValueProviderResult
    Get
    Set
'Usage
Dim instance As ModelState
Dim value As ValueProviderResult

value = instance.Value

instance.Value = value
public ValueProviderResult Value { get; set; }
public:
property ValueProviderResult^ Value {
    ValueProviderResult^ get ();
    void set (ValueProviderResult^ value);
}
member Value : ValueProviderResult with get, set
function get Value () : ValueProviderResult
function set Value (value : ValueProviderResult)

Property Value

Type: System.Web.Http.ValueProviders.ValueProviderResult
The model state value.

See Also

Reference

ModelState Class

System.Web.Http.ModelBinding Namespace