Freigeben über


ResultInfo-Klasse

Represents the results from executing a Transact-SQL batch.

Vererbungshierarchie

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

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

Syntax

'Declaration
Public Class ResultInfo _
    Implements IResultInfo
'Usage
Dim instance As ResultInfo
public class ResultInfo : IResultInfo
public ref class ResultInfo : IResultInfo
type ResultInfo =  
    class
        interface IResultInfo
    end
public class ResultInfo implements IResultInfo

Der ResultInfo-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode ResultInfo(IResultInfo) Initializes a new instance of the ResultInfo class that is a copy of the specified ResultInfo object.
Öffentliche Methode ResultInfo(MultiServerSqlConnectionInfo, String, Int32) Initializes a new instance of the ResultInfo class by using the specified connection information, text, and starting line number.

Zum Anfang

Eigenschaften

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

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.