ModelStateDictionary
Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class ModelStateDictionary : IDictionary<string, ModelState>, ICollection<KeyValuePair<string, ModelState>>, IEnumerable<KeyValuePair<string, ModelState>>, IEnumerable
Properties
Count
View Source
Declaration
public int Count { get; }
IsReadOnly
View Source
Declaration
public bool IsReadOnly { get; }
IsValid
View Source
Declaration
public bool IsValid { get; }
Keys
View Source
Declaration
public ICollection<string> Keys { get; }
Item[String]
View Source
Declaration
public ModelState this[string key] { get; set; }
Values
View Source
Declaration
public ICollection<ModelState> Values { get; }
Methods
Add(KeyValuePair<String, ModelState>)
View Source
Declaration
public void Add(KeyValuePair<string, ModelState> item)
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState> | item |
Add(String, ModelState)
View Source
Declaration
public void Add(string key, ModelState value)
Parameters
Type | Name |
---|---|
System.String | key |
ServiceStack.Html.ModelState | value |
AddModelError(String, Exception)
View Source
Declaration
public void AddModelError(string key, Exception exception)
Parameters
Type | Name |
---|---|
System.String | key |
System.Exception | exception |
AddModelError(String, String)
View Source
Declaration
public void AddModelError(string key, string errorMessage)
Parameters
Type | Name |
---|---|
System.String | key |
System.String | errorMessage |
Clear()
View Source
Declaration
public void Clear()
Contains(KeyValuePair<String, ModelState>)
View Source
Declaration
public bool Contains(KeyValuePair<string, ModelState> item)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState> | item |
ContainsKey(String)
View Source
Declaration
public bool ContainsKey(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
CopyTo(KeyValuePair<String, ModelState>[], Int32)
View Source
Declaration
public void CopyTo(KeyValuePair<string, ModelState>[] array, int arrayIndex)
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState>[] | array |
System.Int32 | arrayIndex |
GetEnumerator()
View Source
Declaration
public IEnumerator<KeyValuePair<string, ModelState>> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState>>
IsValidField(String)
View Source
Declaration
public bool IsValidField(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
Merge(ModelStateDictionary)
View Source
Declaration
public void Merge(ModelStateDictionary dictionary)
Parameters
Type | Name |
---|---|
ServiceStack.Html.ModelStateDictionary | dictionary |
Remove(KeyValuePair<String, ModelState>)
View Source
Declaration
public bool Remove(KeyValuePair<string, ModelState> item)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState> | item |
Remove(String)
View Source
Declaration
public bool Remove(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
SetModelValue(String, ValueProviderResult)
View Source
Declaration
public void SetModelValue(string key, ValueProviderResult value)
Parameters
Type | Name |
---|---|
System.String | key |
ServiceStack.Html.ValueProviderResult | value |
TryGetValue(String, out ModelState)
View Source
Declaration
public bool TryGetValue(string key, out ModelState value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
ServiceStack.Html.ModelState | value |
IEnumerable.GetEnumerator()
View Source
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
Implements
System.Collections.Generic.IDictionary<System.String,ServiceStack.Html.ModelState>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState>>
System.Collections.IEnumerable