StatementEventArgs 建構函式

在指定的時間和日期,針對指定的 Transact-SQL 陳述式初始化 StatementEventArgs 類別的新執行個體。

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

語法

'宣告
Public Sub New ( _
    sqlStatement As String, _
    timeStamp As DateTime _
)
'用途
Dim sqlStatement As String 
Dim timeStamp As DateTime 

Dim instance As New StatementEventArgs(sqlStatement, _
    timeStamp)
public StatementEventArgs(
    string sqlStatement,
    DateTime timeStamp
)
public:
StatementEventArgs(
    String^ sqlStatement, 
    DateTime timeStamp
)
new : 
        sqlStatement:string * 
        timeStamp:DateTime -> StatementEventArgs
public function StatementEventArgs(
    sqlStatement : String, 
    timeStamp : DateTime
)

參數

  • sqlStatement
    型別:String
    String 值,指定造成陳述式事件的 Transact-SQL 陳述式。
  • timeStamp
    型別:DateTime
    DateTime 系統物件值,指定陳述式事件的時間和日期。

請參閱

參考

StatementEventArgs 類別

Microsoft.SqlServer.Management.Common 命名空間