Share via


FileSyncScopeFilter Constructor (Generic IEnumerable, Generic IEnumerable, FileAttributes, Generic IEnumerable)

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.

Namespace: Microsoft.Synchronization.Files
Assembly: Microsoft.Synchronization.Files (in microsoft.synchronization.files.dll)

Syntax

'Declaration
Public Sub New ( _
    fileNameExcludes As IEnumerable(Of String), _
    subdirectoryExcludes As IEnumerable(Of String), _
    attributeExcludeMask As FileAttributes, _
    fileNameIncludes As IEnumerable(Of String) _
)
'Usage
Dim fileNameExcludes As IEnumerable(Of String)
Dim subdirectoryExcludes As IEnumerable(Of String)
Dim attributeExcludeMask As FileAttributes
Dim fileNameIncludes As IEnumerable(Of String)

Dim instance As New FileSyncScopeFilter(fileNameExcludes, subdirectoryExcludes, attributeExcludeMask, fileNameIncludes)
public FileSyncScopeFilter (
    IEnumerable<string> fileNameExcludes,
    IEnumerable<string> subdirectoryExcludes,
    FileAttributes attributeExcludeMask,
    IEnumerable<string> fileNameIncludes
)
public:
FileSyncScopeFilter (
    IEnumerable<String^>^ fileNameExcludes, 
    IEnumerable<String^>^ subdirectoryExcludes, 
    FileAttributes attributeExcludeMask, 
    IEnumerable<String^>^ fileNameIncludes
)
public FileSyncScopeFilter (
    IEnumerable<String> fileNameExcludes, 
    IEnumerable<String> subdirectoryExcludes, 
    FileAttributes attributeExcludeMask, 
    IEnumerable<String> fileNameIncludes
)
public function FileSyncScopeFilter (
    fileNameExcludes : IEnumerable<String>, 
    subdirectoryExcludes : IEnumerable<String>, 
    attributeExcludeMask : FileAttributes, 
    fileNameIncludes : IEnumerable<String>
)

Parameters

  • fileNameExcludes
    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
    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
    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
    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.

See Also

Reference

FileSyncScopeFilter Class
FileSyncScopeFilter Members
Microsoft.Synchronization.Files Namespace