共用方式為


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