Click to Rate and Give Feedback
MSDN
MSDN Library
Windows PowerShell
 WildcardPattern.IsMatch Method (Sys...
Collapse All/Expand All Collapse All
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)
Dim instance As WildcardPattern
Dim input As String
Dim returnValue As Boolean

returnValue = instance.IsMatch(input)
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.

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


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

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
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker