Xceed .NET Libraries Documentation
NotFilter

Welcome to Xceed .NET, .NET Standard and Xamarin Libraries! > Basic Concepts > Filters > NotFilter

The NotFilter class serves to negate filters. It states that in order for the items to be processed they must not match the encompassed filters.

Demonstration

Process all the files that do not have the TXT extension. We will omit the creation of the NameFilter class around the name mask since it is being created underneath.

VB.NET Copy Code
Dim files As AbstractFile() = myFolder.GetFiles( True, NotFilter( "*.txt" ) )
C# Copy Code
AbstractFile[] files = myFolder.GetFiles( true, NotFilter( "*.txt" ) );