Glob. Is Match(String) Method
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.
Matches the given
stringToMatch against the glob.
public: virtual bool IsMatch(System::String ^ stringToMatch);
public bool IsMatch (string stringToMatch);
abstract member IsMatch : string -> bool override this.IsMatch : string -> bool
Public Function IsMatch (stringToMatch As String) As Boolean
The string to match. If the string represents a relative path, it will get normalized against the glob's root. Cannot be
stringToMatch contains invalid path or file characters;
Matching is path aware:
- Slashes are normalized.
- Arguments representing relative paths are normalized against the glob's root.
For example, the glob
**/*.cs does not match
../a.cs points outside of the glob root.