ImageList.ImageCollection.ContainsKey(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷該集合是否包含具有指定鍵的影像。
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。