Determines whether the supplied string matches the wildcard pattern that is specified in the WildcardPattern constructor.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)

Usage

Syntax
Public Function IsMatch ( _
input As String _
) As Boolean
public bool IsMatch (
string input
)
public:
bool IsMatch (
String^ input
)
public boolean IsMatch (
String input
)
public function IsMatch (
input : String
) : boolean
Parameters
- input
The pattern to be checked.
Return Value
A
Boolean value that indicates
true when the supplied input string matches the wildcard pattern that is specified in the
WildcardPattern constructor; otherwise
false is returned.

Remarks

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2
Target Platforms
Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2

See Also