ModelItemDictionary.ICollection<KeyValuePair<ModelItem,ModelItem>>.Contains 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定字典是否包含给定的键/值对。
virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem,System.Activities.Presentation.Model.ModelItem>>.Contains(System::Collections::Generic::KeyValuePair<System::Activities::Presentation::Model::ModelItem ^, System::Activities::Presentation::Model::ModelItem ^> item) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::Activities::Presentation::Model::ModelItem ^, System::Activities::Presentation::Model::ModelItem ^>>::Contains;
bool ICollection<KeyValuePair<ModelItem,ModelItem>>.Contains (System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem,System.Activities.Presentation.Model.ModelItem> item);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem,System.Activities.Presentation.Model.ModelItem>>.Contains : System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem, System.Activities.Presentation.Model.ModelItem> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem,System.Activities.Presentation.Model.ModelItem>>.Contains : System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem, System.Activities.Presentation.Model.ModelItem> -> bool
Function Contains (item As KeyValuePair(Of ModelItem, ModelItem)) As Boolean Implements ICollection(Of KeyValuePair(Of ModelItem, ModelItem)).Contains
参数
- item
- KeyValuePair<ModelItem,ModelItem>
要查找的键/值对。
返回
如果字典包含给定的键/值对,则为 true
;否则为 false
。