Returns a value indicating whether the specified relative path matches the FileSet. This method is intended to be overwritten by descendants. In this case please note that for optimization issues when called with parameters equal to "." and TraverseDirectory this method should return false if no inclusion pattern was specified; true otherwise.

Namespace:  Rebex.IO
Assembly:  Rebex.Common (in Rebex.Common.dll)


Visual Basic
Public Overridable Function IsMatch ( _
	relativePath As String, _
	mode As FileSetMatchMode _
) As Boolean
public virtual bool IsMatch(
	string relativePath,
	FileSetMatchMode mode


Type: System..::..String
A relative path to a base path to be tested for a match.
Type: Rebex.IO..::..FileSetMatchMode
Specifies how the relativePath should be treated for match.

Return Value

True if the path matches the set; false otherwise.

Version Information

.NET Framework

Supported in: 4.8, 4.7.x, 4.6.x, 4.5.x, 4.0, 3.5 SP1

.NET Standard 2.0

Supported in: .NET Core 3.1, 3.0, 2.1; Xamarin.Android 9.1 (or higher); Xamarin.iOS 10.3 (or higher)

See Also