WildcardPattern.IsMatch Method
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

Dim instance As WildcardPattern
Dim input As String
Dim returnValue As Boolean

returnValue = instance.IsMatch(input)
Syntax

Visual Basic
Public Function IsMatch ( _
    input As String _
) As Boolean
C#
public bool IsMatch (
    string input
)
C++
public:
bool IsMatch (
    String^ input
)
J#
public boolean IsMatch (
    String input
)
JScript
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

For more information about wildcard patterns, see Supporting Wildcards in Cmdlet Parameters.


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

Page view tracker