Skip to main content

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
TypeName
System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState>item

Add(String, ModelState)

View Source
Declaration
public void Add(string key, ModelState value)
Parameters
TypeName
System.Stringkey
ServiceStack.Html.ModelStatevalue

AddModelError(String, Exception)

View Source
Declaration
public void AddModelError(string key, Exception exception)
Parameters
TypeName
System.Stringkey
System.Exceptionexception

AddModelError(String, String)

View Source
Declaration
public void AddModelError(string key, string errorMessage)
Parameters
TypeName
System.Stringkey
System.StringerrorMessage

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
TypeName
System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState>item

ContainsKey(String)

View Source
Declaration
public bool ContainsKey(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

CopyTo(KeyValuePair<String, ModelState>[], Int32)

View Source
Declaration
public void CopyTo(KeyValuePair<string, ModelState>[] array, int arrayIndex)
Parameters
TypeName
System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState>[]array
System.Int32arrayIndex

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
TypeName
System.Stringkey

Merge(ModelStateDictionary)

View Source
Declaration
public void Merge(ModelStateDictionary dictionary)
Parameters
TypeName
ServiceStack.Html.ModelStateDictionarydictionary

Remove(KeyValuePair<String, ModelState>)

View Source
Declaration
public bool Remove(KeyValuePair<string, ModelState> item)
Returns

System.Boolean

Parameters
TypeName
System.Collections.Generic.KeyValuePair<System.String,ServiceStack.Html.ModelState>item

Remove(String)

View Source
Declaration
public bool Remove(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

SetModelValue(String, ValueProviderResult)

View Source
Declaration
public void SetModelValue(string key, ValueProviderResult value)
Parameters
TypeName
System.Stringkey
ServiceStack.Html.ValueProviderResultvalue

TryGetValue(String, out ModelState)

View Source
Declaration
public bool TryGetValue(string key, out ModelState value)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
ServiceStack.Html.ModelStatevalue

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