Compartilhar via


Classe NonQueryResult

Represents the results from a call to the ExecuteNonQuery method.

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 NotInheritable Class NonQueryResult _
    Inherits ResultInfo
'Uso
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

O tipo NonQueryResult expõe os membros a seguir.

Propriedades

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

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

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.