語言

TypeElementCollection.ContainsKey(Object) 方法

定義

回傳 a Boolean 表示集合中是否存在具有指定鍵的 a TypeElement 。

public:
 bool ContainsKey(System::Object ^ key);
public bool ContainsKey(object key);
member this.ContainsKey : obj -> bool
Public Function ContainsKey (key As Object) As Boolean

參數

key
Object

收藏中要找到的鑰匙 TypeElement 。

傳回

true 若集合包含 a TypeElement 且鍵為指定鍵;否則, false。

適用於