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
)
<ExtensionAttribute>
Public Shared Function Contains (
this As String,
pattern As String,
ignoreCase As Boolean
) As Boolean
public:
[ExtensionAttribute]
static bool Contains(
String^ this,
String^ pattern,
bool ignoreCase
)
[<ExtensionAttribute>]
static member Contains :
this : string *
pattern : string *
ignoreCase : bool -> bool
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:
BooleanTrue 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