Edit

Share via


StringList.Contains(String) Method

Definition

Determines whether the list contains a specific string.

public:
 bool Contains(System::String ^ s);
public bool Contains (string s);
Public Function Contains (s As String) As Boolean

Parameters

s
String

The string to check the presence of.

Returns

True if s is present in the list, false otherwise.

Applies to