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.
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
)
new :
fileNameExcludes:IEnumerable<string> *
subdirectoryExcludes:IEnumerable<string> *
attributeExcludeMask:FileAttributes *
fileNameIncludes:IEnumerable<string> -> FileSyncScopeFilter
public function FileSyncScopeFilter(
fileNameExcludes : IEnumerable<String>,
subdirectoryExcludes : IEnumerable<String>,
attributeExcludeMask : FileAttributes,
fileNameIncludes : IEnumerable<String>
)
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.