ModelStateDictionary.Contains(KeyValuePair<String,ModelState>) 方法
定义
确定模型状态字典是否包含特定项。Determines whether the model-state dictionary contains a specific item.
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>
要在模型状态字典中查找的项。The item to locate in the model-state dictionary.
返回
如果在字典中找到 item,则为 true;否则为 false。true if item is found in the dictionary; otherwise, false.