ModelStateDictionary::Item Property

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)

public:
virtual property ModelState^ default[String^ key] {
	ModelState^ get (String^ key) sealed;
	void set (String^ key, ModelState^ value) sealed;
}

Parameters

key
Type: System::String

Property Value

Type: System.Web.Mvc::ModelState
The model state item.

Implements

IDictionary<TKey, TValue>::Item[TKey]
Show: