ModelItemDictionary.Contains(KeyValuePair<ModelItem,ModelItem>) 方法

定义

确定字典是否包含给定的键/值对。

protected:
 virtual bool Contains(System::Collections::Generic::KeyValuePair<System::Activities::Presentation::Model::ModelItem ^, System::Activities::Presentation::Model::ModelItem ^> item);
protected virtual bool Contains (System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem,System.Activities.Presentation.Model.ModelItem> item);
abstract member Contains : System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem, System.Activities.Presentation.Model.ModelItem> -> bool
override this.Contains : System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem, System.Activities.Presentation.Model.ModelItem> -> bool
Protected Overridable Function Contains (item As KeyValuePair(Of ModelItem, ModelItem)) As Boolean

参数

item
KeyValuePair<ModelItem,ModelItem>

要查找的键/值对。

返回

Boolean

如果字典包含给定的键/值对,则为 true;否则为 false

实现

适用于