Sdílet prostřednictvím


IFileDataRetriever Interface

Represents the mechanism by which the destination provider retrieves file data from the source provider.

interface IFileDataRetriever : IUnknown

Members

IFileDataRetriever methods Description

IFileDataRetriever::GetRelativeDirectoryPath

Gets the path of the file, relative to the root directory of the replica.

IFileDataRetriever::GetFileInfo

Gets information about the file.

IFileDataRetriever::GetFileHash

Gets the hash value of the file when hashing is in use.

IFileDataRetriever::GetFileStream

Gets a stream that can be used to access the file data.

Remarks

When a custom provider is the source provider and an IFileSyncProvider object is the destination provider, the source provider must return an object that implements IFileDataRetriever in its ISynchronousDataRetriever::LoadChangeData method.

When a custom provider is the destination provider and an IFileSyncProvider object is the source provider, the destination provider will receive an IFileDataRetriever in its ISynchronousNotifyingChangeApplierTarget::SaveChange method. The destination provider can then use the IFileDataRetriever methods to get the file data from the source replica so that it can apply the change to the destination replica.

Requirements

Header: FileSyncProvider.h

See Also

Concepts

Sync Framework File Synchronization Components