NameFilter Class

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

NameFilter Class

NameFilter is a string matching class which allows for both positive and negative matching. A filter is a sequence of independant regular expressions separated by semi-colons ';' Each expression can be prefixed by a plus '+' sign or a minus '-' sign to denote the expression is intended to include or exclude names. If neither a plus or minus sign is found include is the default A given name is tested for inclusion before checking exclusions. Only names matching an include spec and not matching an exclude spec are deemed to match the filter. An empty filter matches any name.

For a list of all members of this type, see NameFilter Members.

System.Object    ICSharpCode.SharpZipLib.Core.NameFilter

public class NameFilter : IScanFilter

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

The following expression includes all name ending in '.dat' with the exception of 'dummy.dat' "+\.dat$;-^dummy\.dat$"

Requirements

Namespace: ICSharpCode.SharpZipLib.Core

Assembly: ICSharpCode.SharpZipLib (in ICSharpCode.SharpZipLib.dll)

See Also

NameFilter Members | ICSharpCode.SharpZipLib.Core Namespace