ModelStateDictionary.Contains(KeyValuePair<String,ModelState>) Metódus

Definíció

Meghatározza, hogy a modellállapot-szótár tartalmaz-e egy adott elemet.

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

Paraméterek

item
KeyValuePair<String,ModelState>

A modellállapot-szótárban keresendő elem.

Válaszok

true ha item a szótárban található; falseellenkező esetben.

Megvalósítás

A következőre érvényes: