Returns true if the string matches the pattern which may contain * and ? wildcards.
Matching is done without regard to case.
Namespace: MonoSoftware.CoreAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static bool Match(
this string s,
string pattern
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function Match (
s As String,
pattern As String
) As Boolean |
Visual C++ |
---|
public:
[ExtensionAttribute]
static bool Match(
String^ s,
String^ pattern
) |
F# |
---|
static member Match :
s : string *
pattern : string -> bool
|
Return Value
Type:
BooleanTrue if the string matches, false otherwise
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