Compartilhar via


Classe ResultInfo

Represents the results from executing a Transact-SQL batch.

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Management.MultiServerConnection
Assembly:  Microsoft.SqlServer.Management.MultiServerConnection (em Microsoft.SqlServer.Management.MultiServerConnection.dll)

Sintaxe

'Declaração
Public Class ResultInfo _
    Implements IResultInfo
'Uso
Dim instance As ResultInfo
public class ResultInfo : IResultInfo
public ref class ResultInfo : IResultInfo
type ResultInfo =  
    class
        interface IResultInfo
    end
public class ResultInfo implements IResultInfo

O tipo ResultInfo expõe os membros a seguir.

Construtores

  Nome Descrição
Método público ResultInfo(IResultInfo) Initializes a new instance of the ResultInfo class that is a copy of the specified ResultInfo object.
Método público ResultInfo(MultiServerSqlConnectionInfo, String, Int32) Initializes a new instance of the ResultInfo class by using the specified connection information, text, and starting line number.

Início

Propriedades

  Nome Descrição
Propriedade pública BatchStartingLine Gets the starting line of the batch in the editor.
Propriedade pública BatchText Gets the text of the Transact-SQL batch that was executed.
Propriedade pública CompletedSuccessfully Gets True if execution was successful, False if there was an exception.
Propriedade pública ConnectionInfo Gets the connection info of the connection producing the result.
Propriedade pública Exception Gets or sets the exception that was thrown while executing the Transact-SQL.
Propriedade pública ExecutionTime Gets or sets the amount of client wall-time it took to get the result back from the server.
Propriedade pública LoginName Gets the name of the login executing the batch.
Propriedade pública ServerDisplayName Gets the display name of the server where the batch was executed.
Propriedade pública ServerName Gets the name of the server where the batch was executed.
Propriedade pública StartTime Gets or sets the time when the batch was submitted.

Início

Métodos

  Nome Descrição
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público ToString (Herdado de Object.)

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.