Edit

Share via


MatchType Enum

Definition

Specifies the type of wildcard matching to use.

C#
public enum MatchType
Inheritance
MatchType

Fields

Name Value Description
Simple 0

Matches using '*' and '?' wildcards.

* matches from zero to any amount of characters. ? matches exactly one character. *.* matches any name with a period in it (with Win32, this would match all items).

Win32 1

Match using Win32 DOS style matching semantics.

'*', '?', '<', '>', and '"' are all considered wildcards. Matches in a traditional DOS / Windows command prompt way. *.* matches all files. ? matches collapse to periods. file.??t will match file.t, file.at, and file.txt.

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1