다음을 통해 공유


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 네임스페이스