Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
Public Default Property Item ( _
key As String _
) As ModelState
Get
Set
public ModelState this[
string key
] { get; set; }
public:
virtual property ModelState^ default[String^ key] {
ModelState^ get (String^ key) sealed;
void set (String^ key, ModelState^ value) sealed;
}
Parameters
- key
Type: System.String
The key.
Property Value
Type: System.Web.Mvc.ModelState
The model state item.
Implements
IDictionary<TKey, TValue>.Item[TKey]