OnSynchronization 委派

使用者定義的委派,負責把調和過程中持續發出的同步事件消耗掉。

命名空間:  System.Data.SqlServerCe
組件:  System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)

語法

'宣告
Public Delegate Sub OnSynchronization ( _
    ar As IAsyncResult, _
    percentComplete As Integer _
)
'用途
Dim instance As New OnSynchronization(AddressOf HandlerMethod)
public delegate void OnSynchronization(
    IAsyncResult ar,
    int percentComplete
)
public delegate void OnSynchronization(
    IAsyncResult^ ar, 
    int percentComplete
)
type OnSynchronization = 
    delegate of 
        ar:IAsyncResult * 
        percentComplete:int -> unit
JScript 支援使用委派,但不支援新的宣告。

參數

  • percentComplete
    型別:System.Int32
    調和過程傳回的值,代表調和過程所完成的複寫百分比。

請參閱

參考

System.Data.SqlServerCe 命名空間