Partager via


Classe ResultInfo

Represents the results from executing a Transact-SQL batch.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.MultiServerConnection
Assembly :  Microsoft.SqlServer.Management.MultiServerConnection (en Microsoft.SqlServer.Management.MultiServerConnection.dll)

Syntaxe

'Déclaration
Public Class ResultInfo _
    Implements IResultInfo
'Utilisation
Dim instance As ResultInfo
public class ResultInfo : IResultInfo
public ref class ResultInfo : IResultInfo
type ResultInfo =  
    class
        interface IResultInfo
    end
public class ResultInfo implements IResultInfo

Le type ResultInfo expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique ResultInfo(IResultInfo) Initializes a new instance of the ResultInfo class that is a copy of the specified ResultInfo object.
Méthode publique ResultInfo(MultiServerSqlConnectionInfo, String, Int32) Initializes a new instance of the ResultInfo class by using the specified connection information, text, and starting line number.

Haut de la page

Propriétés

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

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString (hérité de Object.)

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.