Bagikan melalui


WildcardPattern Class

Definition

Represents a wildcard pattern.

public ref class WildcardPattern sealed
public sealed class WildcardPattern
type WildcardPattern = class
Public NotInheritable Class WildcardPattern
Inheritance
WildcardPattern

Constructors

WildcardPattern(String, WildcardOptions)

Initializes an instance of the WildcardPattern class for the specified wildcard pattern expression, with options that modify the pattern.

WildcardPattern(String)

Initializes and instance of the WildcardPattern class for the specified wildcard pattern.

Methods

ContainsWildcardCharacters(String)

Checks to see if the given string has any wild card characters in it.

Escape(String)

Escape special chars in a string by replacing them with their escape codes.

Get(String, WildcardOptions)

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

IsMatch(String)

Indicates whether the wildcard pattern specified in the WildcardPattern constructor finds a match in the input string.

ToWql()

Converts this wildcard to a string that can be used as a right-hand-side operand of the LIKE operator of WQL. For example: "a*" will be converted to "a%".

Unescape(String)

Unescapes any escaped characters in the input string.

Applies to