IMSBuildGlob.IsMatch(String) 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.
Matches the given stringToMatch
against the glob.
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, since ../a.cs points outside of the glob root.
Returns false if stringToMatch
contains invalid path or file characters.
public:
bool IsMatch(System::String ^ stringToMatch);
public bool IsMatch (string stringToMatch);
abstract member IsMatch : string -> bool
Public Function IsMatch (stringToMatch As String) As Boolean
Parameters
- stringToMatch
- String
The string to match. If the string represents a relative path, it will get normalized against the glob's root. Cannot be null.