Share via


ComputerCollection.Contains(String) Method

Definition

Determines whether the referenced collection contains the specified string.

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

Parameters

name
String

A String value that specifies the computer name to search for in the collection.

Returns

A Boolean value that determines whether the collection contains the specified string. If True, it contains the string.

Applies to