Share via


ServerProtocolCollection.Contains(String) Method

Definition

Checks whether the specified key value exists in the collection.

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

Parameters

key
String

A String value that specifies the key value to check the existence of in the collection.

Returns

A Boolean value that specifies whether the key value exists in the collection.

If True, the key value exists in the collection.

If False, the key value does not exist in the collection.

Examples

Using Collections

Applies to