Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

FileSet.IsMatch Method

Namespace: Rebex.IO
Assembly: Rebex.Common.dll (version 7.0.9147)

IsMatch(String, FileSetMatchMode)

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.

Declaration
public virtual bool IsMatch(string relativePath, FileSetMatchMode mode)
Parameters
Type Name Description
String relativePath

A relative path to a base path to be tested for a match.

FileSetMatchMode mode

Specifies how the relativePath should be treated for match.

Returns
Type Description
Boolean

True if the path matches the set; false otherwise.

In This Article
  • IsMatch(String, FileSetMatchMode)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies