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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。