StatementEventArgs 类

The StatementEventArgs class represents the arguments used when a statement event is raised.

继承层次结构

System.Object
  System.EventArgs
    Microsoft.SqlServer.Management.Common.StatementEventArgs

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

语法

声明
Public Class StatementEventArgs _
    Inherits EventArgs
用法
Dim instance As StatementEventArgs
public class StatementEventArgs : EventArgs
public ref class StatementEventArgs : public EventArgs
type StatementEventArgs =  
    class 
        inherit EventArgs 
    end
public class StatementEventArgs extends EventArgs

StatementEventArgs 类型公开以下成员。

构造函数

  名称 说明
公共方法 StatementEventArgs Initializes a new instance of the StatementEventArgs class for the specified Transact-SQL statement at the specified time and date.

页首

属性

  名称 说明
公共属性 SqlStatement Gets the Transact-SQL statement that caused the statement event.
公共属性 TimeStamp Gets the time and date when the statement event occurred.

页首

方法

  名称 说明
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString Returns a String value that represents the StatementEventArgs object. (覆盖 Object.ToString()。)

页首

注释

Thread Safety

此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。但不保证所有实例成员都是线程安全的。

示例

处理 SMO 事件

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.SqlServer.Management.Common 命名空间

其他资源

处理 SMO 事件