Click or drag to resize

StringSetContains Method (String, StringComparison)

Note: This API is now 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.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
[ObsoleteAttribute("This overload is deprecated because it is counter-intuitive.  Use of the Contains() overload taking a StringComparisonTypes parameter instead.")]
public bool Contains(
	string value,
	StringComparison comparisonType
)

Parameters

value
Type: SystemString
The value for which to search.
comparisonType
Type: SystemStringComparison
The string comparison to use (specifically case-sensitivity and culture).

Return Value

Type: Boolean
True if value is found, else false.
See Also