ServerMessageEventArgs 类
Provides information about a server message event.
继承层次结构
System. . :: . .Object
System. . :: . .EventArgs
Microsoft.SqlServer.Management.MultiServerConnection..::..ServerMessageEventArgs
命名空间: Microsoft.SqlServer.Management.MultiServerConnection
程序集: Microsoft.SqlServer.Management.MultiServerConnection(在 Microsoft.SqlServer.Management.MultiServerConnection.dll 中)
语法
声明
Public Class ServerMessageEventArgs _
Inherits EventArgs _
Implements IResultInfo
用法
Dim instance As ServerMessageEventArgs
public class ServerMessageEventArgs : EventArgs,
IResultInfo
public ref class ServerMessageEventArgs : public EventArgs,
IResultInfo
type ServerMessageEventArgs =
class
inherit EventArgs
interface IResultInfo
end
public class ServerMessageEventArgs extends EventArgs implements IResultInfo
ServerMessageEventArgs 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ServerMessageEventArgs | Initializes a new instance of the ServerMessageEventArgs class. |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
BatchStartingLine | Gets the starting line of the batch in the editor. |
![]() |
BatchText | Gets the text of the Transact-SQL batch that was executed. |
![]() |
CompletedSuccessfully | Gets true if execution was successful, false if there was an exception. |
![]() |
ConnectionInfo | Gets the connection info of the connection producing the result. |
![]() |
Errors | Gets the messages that were returned by the server. |
![]() |
Exception | Gets the exception that was thrown while executing the Transact-SQL batch. |
![]() |
ExecutionTime | Gets the amount of client wall-time it took to get the result back from the server. |
![]() |
LoginName | Gets the name of the login executing the batch. |
![]() |
ServerDisplayName | Gets the display name of the server where the batch was executed. |
![]() |
ServerName | Gets the name of the server where the batch was executed. |
![]() |
StartTime | Gets the time when the batch was submitted. |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | (从 Object 继承。) |
![]() |
Finalize | (从 Object 继承。) |
![]() |
GetHashCode | (从 Object 继承。) |
![]() |
GetType | (从 Object 继承。) |
![]() |
MemberwiseClone | (从 Object 继承。) |
![]() |
ToString | (从 Object 继承。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。