StatementEventHandler Delegate
The StatementEventHandler class represents the method that handles the event raised by a statement.
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)
語法
'宣告
Public Delegate Sub StatementEventHandler ( _
sender As Object, _
e As StatementEventArgs _
)
public delegate void StatementEventHandler (
Object sender,
StatementEventArgs e
)
public delegate void StatementEventHandler (
Object^ sender,
StatementEventArgs^ e
)
/** @delegate */
public delegate void StatementEventHandler (
Object sender,
StatementEventArgs e
)
JScript 支援委派的使用,但不支援新委派的宣告。
參數
- sender
An Object system object value that specifies the object that raised the event.
- e
An StatementEventArgs value that specifies the arguments passed to the event handler.
備註
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
範例
How to: Register Event Handlers and Subscribe to Event Handling in Visual Basic .NET
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
Microsoft.SqlServer.Management.Common Namespace