Share via


FileSyncProvider.ScopeFilter Property

Gets the static scope filter that specifies which files or directories in the local file store are included in the scope.

Namespace:  Microsoft.Synchronization.Files
Assembly:  Microsoft.Synchronization.Files (in Microsoft.Synchronization.Files.dll)

Syntax

'Declaration
Public ReadOnly Property ScopeFilter As FileSyncScopeFilter
    Get
'Usage
Dim instance As FileSyncProvider
Dim value As FileSyncScopeFilter

value = instance.ScopeFilter
public FileSyncScopeFilter ScopeFilter { get; }
public:
property FileSyncScopeFilter^ ScopeFilter {
    FileSyncScopeFilter^ get ();
}
member ScopeFilter : FileSyncScopeFilter
function get ScopeFilter () : FileSyncScopeFilter

Property Value

Type: Microsoft.Synchronization.Files.FileSyncScopeFilter
The static scope filter that specifies which files or directories in the local file store are included in the scope. The default value is a null reference (Nothing in Visual Basic).

Remarks

The scope filter can be used to exclude a list of file names, exclude a list of subfolders, exclude files and folders based on their attributes, and explicitly include a list of file names.

The same filter should be used on both the source and destination providers, or unexpected results might occur.

The filter should be set the first time synchronization is performed and should remain the same in all subsequent synchronization sessions, or unexpected results might occur.

For more information about how to use the static scope filter, see Controlling Which Files Are Synchronized.

See Also

Reference

FileSyncProvider Class

Microsoft.Synchronization.Files Namespace