語言

ImageList.ImageCollection.ContainsKey(String) 方法

定義

判斷該集合是否包含具有指定鍵的影像。

public:
 bool ContainsKey(System::String ^ key);
public bool ContainsKey(string key);
member this.ContainsKey : string -> bool
Public Function ContainsKey (key As String) As Boolean

參數

key
String

圖片的關鍵字要搜尋。

傳回

true用指定鍵表示包含於集合中的影像;否則,。 false

備註

影像名稱對應其鍵。 關鍵比較並不區分大小寫。 若 key 參數為 null 空字串,則方法 ContainsKey 回傳 false。

適用於