Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WildcardPattern Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents a wildcard pattern that is used for matching. This class cannot be inherited.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.WildcardPattern

public sealed class WildcardPattern

NameDescription
System_CAPS_pubmethodWildcardPattern(String)

Initializes a new instance of the WildcardPattern class that contains the wildcard pattern that is used for matching.

System_CAPS_pubmethodWildcardPattern(String, WildcardOptions)

Initializes a new instance of the WildcardPattern class that contains the wildcard pattern and options for modifying the pattern.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticContainsWildcardCharacters(String)

Checks to see whether the given string contains any wildcard characters.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticEscape(String)

Escape special chars, except for those specified in charsNotToEscape in a string by replacing them with their escape codes.

System_CAPS_pubmethodSystem_CAPS_staticGet(String, WildcardOptions)

Create a new WildcardPattern, or return an already created one.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsMatch(String)

Determines whether the supplied string matches the wildcard pattern that is specified in the WildcardPattern.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodToWql()

Converts this wildcard pattern to a string that can be used as an operand on the right side of the LIKE operator of WQL. Introduced in Windows PowerShell 3.0.

For example: "a*" is converted to "a%".

System_CAPS_pubmethodSystem_CAPS_staticUnescape(String)

Converts a string that has escaped characters to a string that includes the escaped characters in their unescaped form.

For more information about wildcard patterns, see Supporting Wildcard Characters 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.

Return to top
Show: