ASP.NET MVC 10.1.11
Demos Support Blog Download
Show / Hide Table of Contents
PDF

Class StringExtensions

Inheritance
System.Object
StringExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: BoldReports.RDL.Data
Assembly: BoldReports.Web.dll
Syntax
public static class StringExtensions

Methods

Contains(String, String, StringComparison)

Determines whether a string contains a specified substring, using the specified comparison option for evaluating and comparing the string.

Declaration
public static bool Contains(this string source, string toCheck, StringComparison comp)
Parameters
Type Name Description
System.String source

The string instance to search within.

System.String toCheck

The substring to seek within the source string.

System.StringComparison comp

The comparison type that specifies how the substring should be located in the string.

Returns
Type Description
System.Boolean

A boolean value indicating whether the specified substring toCheck occurs within the source string, following the criteria defined by comp.

Remarks

Returns false if the source string is null.

In This Article
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
×
SEND FEEDBACK REGARDING THIS TOPIC

Please provide additional information

Please provide additional information

Please provide additional information

Please provide additional information
Please provide additional information
Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved