StatementEventArgs 类
StatementEventArgs 类表示引发语句事件时使用的参数。
继承层次结构
Object
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 | 在指定的时间和日期为指定的 Transact-SQL 语句初始化 StatementEventArgs 类的新实例。 |
顶部
属性
名称 | 说明 | |
---|---|---|
SqlStatement | 获取导致语句事件的 Transact-SQL 语句。 | |
TimeStamp | 获取语句事件发生的时间和日期。 |
顶部
方法
名称 | 说明 | |
---|---|---|
Equals | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
ToString | 返回表示 StatementEventArgs 对象的 String 值。 (覆盖 ObjectToString。) |
顶部
注释
线程安全
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。但不保证所有实例成员都是线程安全的。
示例
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。
请参阅
参考
Microsoft.SqlServer.Management.Common 命名空间