Xceed .NET Libraries Documentation
Welcome to Xceed Data Manipulation Compoents for .NET and .NET Standard / Basic Concepts / Filters / NotFilter

In This Topic
    NotFilter
    In This Topic

    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" ) );