ModelStateDictionary.Item Property (String)
Gets or sets the value that is associated with the specified key.
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.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
Parameters
key
Type: System.StringThe key.
Property Value
Type: System.Web.Http.ModelBinding.ModelState
The model state item.
Implements
IDictionary<TKey, TValue>.Item[TKey]
See Also
ModelStateDictionary Class
System.Web.Http.ModelBinding Namespace
Return to top