Udostępnij przez


ModelStateDictionary.Contains(KeyValuePair<String,ModelState>) Metoda

Definicja

Określa, czy słownik model-state zawiera określony element.

public bool Contains(System.Collections.Generic.KeyValuePair<string,System.Web.WebPages.Html.ModelState> item);
abstract member Contains : System.Collections.Generic.KeyValuePair<string, System.Web.WebPages.Html.ModelState> -> bool
override this.Contains : System.Collections.Generic.KeyValuePair<string, System.Web.WebPages.Html.ModelState> -> bool
Public Function Contains (item As KeyValuePair(Of String, ModelState)) As Boolean

Parametry

item
KeyValuePair<String,ModelState>

Element do wyszukania.

Zwraca

true, jeśli słownik model-state zawiera określony element; w przeciwnym razie wartość false.

Implementuje

Dotyczy