Method Contains
Contains(String, String, StringComparison)
Returns true if value contains the substring searchValue as matched according to comparisonMethod.
Declaration
public static bool Contains(this string value, string searchValue, StringComparison comparisonMethod)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The value to search in. |
| System.String | searchValue | The value to search for. |
| System.StringComparison | comparisonMethod | A System.StringComparison value specifying rules for matching |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if |
Remarks
If value is null returns false.