SmoApplication.AnyObjectEventHandler 委托

The SmoApplication..::..AnyObjectEventHandler class represents the event handler that is used to handle events from any object.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Delegate Sub AnyObjectEventHandler ( _
    sender As Object, _
    e As SmoEventArgs _
)
用法
Dim instance As New AnyObjectEventHandler(AddressOf HandlerMethod)
public delegate void AnyObjectEventHandler(
    Object sender,
    SmoEventArgs e
)
public delegate void AnyObjectEventHandler(
    Object^ sender, 
    SmoEventArgs^ e
)
type AnyObjectEventHandler = 
    delegate of 
        sender:Object * 
        e:SmoEventArgs -> unit
JScript 支持使用委托,但不支持声明新委托。

参数