FileSystemName.MatchesSimpleExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies if the given expression matches the given name. Supports the following wildcards: '*' and '?'. The backslash character '\' escapes.
public static bool MatchesSimpleExpression (ReadOnlySpan<char> expression, ReadOnlySpan<char> name, bool ignoreCase = true);
static member MatchesSimpleExpression : ReadOnlySpan<char> * ReadOnlySpan<char> * bool -> bool
Public Shared Function MatchesSimpleExpression (expression As ReadOnlySpan(Of Char), name As ReadOnlySpan(Of Char), Optional ignoreCase As Boolean = true) As Boolean
Parameters
- expression
- ReadOnlySpan<Char>
The expression to match with.
- name
- ReadOnlySpan<Char>
The name to check against the expression.
- ignoreCase
- Boolean
true
to ignore case (default); false
if the match should be case-sensitive.
Returns
true
if the given expression matches the given name; otherwise, false
.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.