ModelStateDictionary.Item Property (String)

 

Gets or sets the value that is associated with the specified key.

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

Syntax

public ModelState this[
    string key
] { get; set; }
public:
property ModelState^ default[
    String^ key
] {
    virtual ModelState^ get(String^ key) sealed;
    virtual void set(String^ key, ModelState^ value) sealed;
}
abstract Item : 
        key:string -> ModelState with get, set
override Item : 
        key:string -> ModelState with get, set
Public Property Item (
    key As String
) As ModelState

Property Value

Type: System.Web.Mvc.ModelState

The model state item.

Implements

IDictionary<TKey, TValue>.Item[TKey]

See Also

ModelStateDictionary Class
System.Web.Mvc Namespace

Return to top