Share via


IMSBuildGlob.IsMatch(String) Method

Definition

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.

Returns

Applies to