Partager via


Classe NonQueryResult

Represents the results from a call to the ExecuteNonQuery method.

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 NotInheritable Class NonQueryResult _
    Inherits ResultInfo
'Utilisation
Dim instance As NonQueryResult
public sealed class NonQueryResult : ResultInfo
public ref class NonQueryResult sealed : public ResultInfo
[<SealedAttribute>]
type NonQueryResult =  
    class
        inherit ResultInfo
    end
public final class NonQueryResult extends ResultInfo

Le type NonQueryResult expose les membres suivants.

Propriétés

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

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 Gets the string representation of the current object. (remplace Object. . :: . .ToString() () () ().)

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.