ModelStateDictionary.Contains(KeyValuePair<String,ModelState>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷模型狀態字典是否包含特定值。
public bool Contains(System.Collections.Generic.KeyValuePair<string,System.Web.Mvc.ModelState> item);
abstract member Contains : System.Collections.Generic.KeyValuePair<string, System.Web.Mvc.ModelState> -> bool
override this.Contains : System.Collections.Generic.KeyValuePair<string, System.Web.Mvc.ModelState> -> bool
Public Function Contains (item As KeyValuePair(Of String, ModelState)) As Boolean
參數
- item
- KeyValuePair<String,ModelState>
要在模型狀態字典中尋找的物件。
傳回
如果在 item 模型狀態字典中找到,則為 true;否則為 false。