Click or drag to resize

StringSetContains Method

Overload List
  NameDescription
Public methodContains(String)
Determines whether the specified string is in the StringCollection.
(Inherited from StringCollection.)
Public methodContains(String, StringComparison) Obsolete.
Determines if this set contains one or more strings matching (equaling) the specified value. Attention: This method returns true if any string in the collection CONTAINS the specified value. Use Contains(String, StringComparisonTypes, StringComparison) with Equals to determine if this collection contains any strings that EQUAL the specified value.
Public methodContains(String, StringComparisonTypes, StringComparison)
Determines if this set contains one or more strings matching (per the comparison type) the specified value. Attention: This overload is recommended over the counter-intuitive Contains(String, StringComparison) overload.
Top
See Also