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 或空字串,方法會 ContainsKeyfalse 回 。

適用於