FileSyncScopeFilter Constructor (IEnumerable<String>, IEnumerable<String>, FileAttributes, IEnumerable<String>)
Initializes a new instance of the FileSyncScopeFilter class that is based on a list of files to exclude, a list of subdirectories to exclude, an attribute mask to use to exclude files and folders, and a list of file names to explicitly include.
Assembly: Microsoft.Synchronization.Files (in Microsoft.Synchronization.Files.dll)
public:
FileSyncScopeFilter(
IEnumerable<String^>^ fileNameExcludes,
IEnumerable<String^>^ subdirectoryExcludes,
FileAttributes attributeExcludeMask,
IEnumerable<String^>^ fileNameIncludes
)
Parameters
- fileNameExcludes
- Type: System.Collections.Generic::IEnumerable<String>
A collection of file names to exclude from the scope. Wildcards (* and ?) can be used. Passing an empty collection for this value will exclude no files based on name.
- subdirectoryExcludes
- Type: System.Collections.Generic::IEnumerable<String>
A collection of relative paths of directories to exclude from the scope. Wildcards (* and ?) cannot be used. Excluding a directory excludes all files and subdirectories that are contained in that directory. Passing an empty collection for this value will exclude no subdirectories based on relative path.
- attributeExcludeMask
- Type: System.IO::FileAttributes
Attributes of files and folders to be excluded from the scope. If a folder is excluded, all its child files and folders are also excluded, even if the children do not have the attribute set directly on them. Passing 0 for this value indicates an empty mask. This will exclude no files based on attributes.
- fileNameIncludes
- Type: System.Collections.Generic::IEnumerable<String>
A collection of file names to explicitly include in the scope. Wildcards (* and ?) can be used. Passing an empty collection for this value will include all files and folders that are not otherwise excluded.
Show: