FileSyncProvider Constructor
Include Protected Members
Include Inherited Members
Initializes a new instance of the FileSyncProvider class.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
Name | Description | |
---|---|---|
FileSyncProvider(String) | Initializes a new instance of the FileSyncProvider class based on the specified root directory path. | |
FileSyncProvider(Guid, String) | Initializes a new instance of the FileSyncProvider class based on the specified replica ID and root directory path. | |
FileSyncProvider(String, FileSyncScopeFilter, FileSyncOptions) | Initializes a new instance of the FileSyncProvider class that is based on the specified root directory path, scope filter, and configuration options. | |
FileSyncProvider(Guid, String, FileSyncScopeFilter, FileSyncOptions) | Initializes a new instance of the FileSyncProvider class that is based on the specified replica ID, root directory path, scope filter, and configuration options. | |
FileSyncProvider(String, FileSyncScopeFilter, FileSyncOptions, String, String, String, String) | Initializes a new instance of the FileSyncProvider class that is based on the specified root directory path, scope filter, configuration options, metadata storage file path, metadata storage file name, temporary file path, and path to store conflict loser files. | |
FileSyncProvider(Guid, String, FileSyncScopeFilter, FileSyncOptions, String, String, String, String) | Initializes a new instance of the FileSyncProvider class that is based on the specified replica ID, root directory path, scope filter, configuration options, metadata storage file path, metadata storage file name, temporary file path, and path to store conflict loser files. |
Top
Remarks
Information that is passed to the constructors is used for initialization and is set for the life of the provider instance. This means that, when any changes are made to these settings, a new instance of the provider must be created. For example, to change the scope filter that is being used for synchronization, a new file synchronization provider must be created and initialized with the new filter.
The Sync Framework file synchronization provider uses the metadata storage service to store all synchronization metadata in a lightweight database. The metadata database is a single file. This file can be stored with the files and folders to be synchronized or in another location that is specified in the FileSyncProvider constructor.