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

Definition

Avgör om ordlistan modelltillstånd innehåller ett specifikt objekt.

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

Parametrar

item
KeyValuePair<String,ModelState>

Objektet som ska hittas i ordlistan för modelltillstånd.

Returer

trueom item hittas i ordlistan, annars . false

Implementeringar

Gäller för