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

Definition

Bestimmt, ob das Modellstatuswö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, das im Modellstatusverzeichnis gefunden werden soll.

Gibt zurück

truewenn item im Wörterbuch gefunden wird; andernfalls . false

Implementiert

Gilt für: