ModelItemDictionary.ContainsKey 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定字典是否包含给定的键。
ContainsKey(ModelItem) |
确定字典是否包含给定的键。 |
ContainsKey(Object) |
确定字典是否包含给定的键。 |
确定字典是否包含给定的键。
public:
abstract bool ContainsKey(System::Activities::Presentation::Model::ModelItem ^ key);
C#
public abstract bool ContainsKey (System.Activities.Presentation.Model.ModelItem key);
abstract member ContainsKey : System.Activities.Presentation.Model.ModelItem -> bool
Public MustOverride Function ContainsKey (key As ModelItem) As Boolean
参数
- key
- ModelItem
要查找的键。
返回
如果字典包含给定键,则为 true
;否则为 false
。
实现
例外
如果 key
为 null
。
适用于
.NET Framework 4.8.1 和其他版本
产品 | 版本 |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
确定字典是否包含给定的键。
public:
abstract bool ContainsKey(System::Object ^ key);
C#
public abstract bool ContainsKey (object key);
abstract member ContainsKey : obj -> bool
Public MustOverride Function ContainsKey (key As Object) As Boolean
参数
- key
- Object
要查找的键。
返回
如果字典包含给定键,则为 true
;否则为 false
。
例外
如果 key
为 null
。
适用于
.NET Framework 4.8.1 和其他版本
产品 | 版本 |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |