SmoApplication.ObjectCreatedEventHandler 委托

The SmoApplication..::..ObjectCreatedEventHandler class represents the event handler that is used to handle events when an object is created.

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

语法

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

参数