FileSyncProvider.CopyingFile 事件

复制文件时会定期出现,以显示进度。

命名空间: Microsoft.Synchronization.Files
程序集: Microsoft.Synchronization.Files(在 microsoft.synchronization.files.dll 中)

语法

声明
Public Event CopyingFile As EventHandler(Of CopyingFileEventArgs)
用法
Dim instance As FileSyncProvider
Dim handler As EventHandler(Of CopyingFileEventArgs)

AddHandler instance.CopyingFile, handler
public event EventHandler<CopyingFileEventArgs> CopyingFile
public:
event EventHandler<CopyingFileEventArgs^>^ CopyingFile {
    void add (EventHandler<CopyingFileEventArgs^>^ value);
    void remove (EventHandler<CopyingFileEventArgs^>^ value);
}
/** @event */
public void add_CopyingFile (EventHandler<CopyingFileEventArgs> value)

/** @event */
public void remove_CopyingFile (EventHandler<CopyingFileEventArgs> value)
JScript supports the use of events, but not the declaration of new ones.

备注

会针对写入文件的每个 512 KB 数据块激发一次此事件。

如果文件小于 512 KB,则不激发该事件。

不会激发此事件以指示文件复制操作完成,而是在文件复制完成后,激发 AppliedChange 事件。

CopyingFileEventArgs 类可提供文件的路径以及文件的已复制百分比。

请参阅

参考

FileSyncProvider 类
FileSyncProvider 成员
Microsoft.Synchronization.Files 命名空间