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

Definition

Bestimmt, ob das Modellzustandswörterbuch ein bestimmtes Element enthält.

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

Parameter

item
KeyValuePair<String,ModelState>

Das Element nach dem im Modellzustandswörterbuch gesucht werden soll.

Gibt zurück

true, wenn sich item im Wörterbuch befindet, andernfalls false.

Implementiert

Gilt für: