Xceed .NET Libraries Documentation
FilterScope Enumeration
Example Example 


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace : FilterScope Enumeration
Specifies which type of FileSystemItem will be filtered by a Filter object.
Syntax
'Declaration
 
<FlagsAttribute()>
Public Enum FilterScope 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As FilterScope
Members
MemberValueDescription
All3The filter will be applied to all types of FileSystemItem objects.
File1The filter will be applied to any AbstractFile object.
Folder2The filter will be applied to any AbstractFolder object.
Recurse4The filter only applies to subfolder AbstractFolder objects when the recursive parameter of the applicable methods is set to true.
Remarks

The File and Folder values determine what items are included or excluded, but do not prevent recursing into subfolders even though that folder would be excluded by the filter. To prevent recursing into a subfolder, use the Recurse value with the applicable filter.

Example
This example shows how to prevent the contents of a specific subfolder from being copied, while copying everything else recursively.
This example shows how to prevent the contents of a specific subfolder from being copied, while copying everything else recursively.

	
sourceFolder.CopyFilesTo( destFolder, true, true, new NotFilter( new NameFilter( "Private", FilterScope.Recurse ) ) );
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Xceed.FileSystem.FilterScope

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Xceed.FileSystem Namespace