RegisteredServerCollection.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

Boolean 值,指定字串值是否存在集合內。

如果為 True,則字串值存在集合內,否則為 False。

範例

使用集合

適用於