StatusBar.StatusBarPanelCollection.ContainsKey(String) StatusBar.StatusBarPanelCollection.ContainsKey(String) StatusBar.StatusBarPanelCollection.ContainsKey(String) StatusBar.StatusBarPanelCollection.ContainsKey(String) Method

定义

确定集合是否包含具有指定键的 StatusBarPanelDetermines whether the collection contains a StatusBarPanel with the specified key.

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

参数

key
String String String String

要在集合中查找的项的名称。The name of the item to find in the collection.

返回

如果集合包含具有指定键的 StatusBarPanel,则为 true;否则为 falsetrue to indicate the collection contains a StatusBarPanel with the specified key; otherwise, false.

注解

Name属性对应的键StatusBarPanelStatusBar.StatusBarPanelCollectionThe Name property corresponds to the key for a StatusBarPanel in the StatusBar.StatusBarPanelCollection.

密钥的比较不区分大小写。The key comparison is not case-sensitive. 如果key参数是null或空字符串,ContainsKey返回 false.If the key parameter is null or an empty string, ContainsKey returns false.

适用于