StatementEventArgs 构造函数

Initializes a new instance of the StatementEventArgs class for the specified Transact-SQL statement at the specified time and date.

命名空间:  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
    类型:System.String
    A String value that specifies the Transact-SQL statement that caused the statement event.
  • timeStamp
    类型:System.DateTime
    A DateTime system object value that specifies the time and date of the statement event.

请参阅

参考

StatementEventArgs 类

Microsoft.SqlServer.Management.Common 命名空间