共用方式為


ReplayEventHandler 委派

Represents the ReplayEventHandler event handler.

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

語法

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

參數