ServerEventArgs 类
The ServerEventArgs object provides programmatic access to the arguments that are used to report all types of events that occur on an instance of SQL Server.
继承层次结构
System. . :: . .Object
System. . :: . .EventArgs
Microsoft.SqlServer.Management.Smo..::..ServerEventArgs
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public NotInheritable Class ServerEventArgs _
Inherits EventArgs
用法
Dim instance As ServerEventArgs
public sealed class ServerEventArgs : EventArgs
public ref class ServerEventArgs sealed : public EventArgs
[<SealedAttribute>]
type ServerEventArgs =
class
inherit EventArgs
end
public final class ServerEventArgs extends EventArgs
ServerEventArgs 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
EventType | Gets the type of event. | |
PostTime | Gets the date and time at which the argument was posted. | |
Properties | Represents a collection of EventProperty objects. Each EventProperty object represents a property of a server event. | |
Spid | Gets the server process identifier (SPID) of the event. | |
SqlInstance | Gets the instance of SQL Server on which the event occurred. |
页首
方法
名称 | 说明 | |
---|---|---|
Equals | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
ToString | (从 Object 继承。) |
页首
注释
Thread Safety
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。