Класс 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.)

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.