ServerGroupCollection.Contains(String) 方法

定义

确定集合中是否存在指定的字符串值。

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

参数

key
String

一个 String 值,该值指定一个确定它在集合中是否存在的值。

返回

一个 Boolean 值,该值指定集合中是否存在此字符串值。

如果为 True,则集合中存在此字符串值。

如果为 False,则集合中不存在此字符串值。

示例

使用集合

适用于