共用方式為


DataTransferEventHandler 委派

DataTransferEventHandler 類別代表負責處理資料傳輸程序引發之事件的方法。

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public Delegate Sub DataTransferEventHandler ( _
    sender As Object, _
    e As DataTransferEventArgs _
)
'用途
Dim instance As New DataTransferEventHandler(AddressOf HandlerMethod)
public delegate void DataTransferEventHandler(
    Object sender,
    DataTransferEventArgs e
)
public delegate void DataTransferEventHandler(
    Object^ sender, 
    DataTransferEventArgs^ e
)
type DataTransferEventHandler = 
    delegate of 
        sender:Object * 
        e:DataTransferEventArgs -> unit
JScript 支援委託的使用,但不支援新委託的宣告。

參數