ModelStateDictionary.Contains(KeyValuePair<String,ModelState>) 方法

定义

确定模型状态字典是否包含特定项。

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

参数

item
KeyValuePair<String,ModelState>

要在模型状态字典中查找的项。

返回

如果在字典中找到 item,则为 true;否则为 false

实现

适用于