WildcardPattern Class

Definition

Represents a wildcard pattern.

public sealed class WildcardPattern
Inheritance
WildcardPattern

Constructors

WildcardPattern(String)

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

WildcardPattern(String, WildcardOptions)

Initializes an instance of the WildcardPattern class for the specified wildcard pattern expression, with options that modify the 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.

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.