FilesIsWildcardMatch Method
Returns whether a wildcarded pattern matches a file name.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.0.0
public static bool IsWildcardMatch(
string pattern,
string fileName
)
Public Shared Function IsWildcardMatch (
pattern As String,
fileName As String
) As Boolean
public:
static bool IsWildcardMatch(
String^ pattern,
String^ fileName
)
static member IsWildcardMatch :
pattern : string *
fileName : string -> bool
- pattern String
- The pattern that may contain wildcards (*, ?).
- fileName String
- The file name to test.
Boolean, when
fileName matches
pattern; otherwise,
.