Click or drag to resize

ExtensionMethodsContains Method

if a pattern is found in the string

Namespace:  Hummingbird.TestFramework
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public static bool Contains(
	this string this,
	string pattern,
	bool ignoreCase
)

Parameters

this
Type: SystemString
String object
pattern
Type: SystemString
pattern to be found in the string object
ignoreCase
Type: SystemBoolean
False, if the search is case sensitive, or True if the search is case insensitive

Return Value

Type: Boolean
True if the pattern is found in the string, False if the pattern is not found.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also