ResultInfo 类

Represents the results from executing a Transact-SQL batch.

继承层次结构

System. . :: . .Object
  Microsoft.SqlServer.Management.MultiServerConnection..::..ResultInfo
    Microsoft.SqlServer.Management.MultiServerConnection. . :: . .NonQueryResult

命名空间:  Microsoft.SqlServer.Management.MultiServerConnection
程序集:  Microsoft.SqlServer.Management.MultiServerConnection(在 Microsoft.SqlServer.Management.MultiServerConnection.dll 中)

语法

声明
Public Class ResultInfo _
    Implements IResultInfo
用法
Dim instance As ResultInfo
public class ResultInfo : IResultInfo
public ref class ResultInfo : IResultInfo
type ResultInfo =  
    class
        interface IResultInfo
    end
public class ResultInfo implements IResultInfo

ResultInfo 类型公开以下成员。

构造函数

  名称 说明
公共方法 ResultInfo(IResultInfo) Initializes a new instance of the ResultInfo class that is a copy of the specified ResultInfo object.
公共方法 ResultInfo(MultiServerSqlConnectionInfo, String, Int32) Initializes a new instance of the ResultInfo class by using the specified connection information, text, and starting line number.

页首

属性

  名称 说明
公共属性 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.
公共属性 Exception Gets or sets the exception that was thrown while executing the Transact-SQL.
公共属性 ExecutionTime Gets or sets 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 or sets the time when the batch was submitted.

页首

方法

  名称 说明
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString (从 Object 继承。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。