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

定义

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

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

参数

item
KeyValuePair<String,ModelState>

要查找的项。

返回

如果模型状态字典包含指定的项,则为 true;否则为 false。

实现

适用于