Compartilhar via


Classe BusinessLogicCommand

Represents a business logic command.

Hierarquia de herança

System.Object
  Microsoft.SqlServer.Replication.BusinessLogicSupport.BusinessLogicCommand

Namespace:  Microsoft.SqlServer.Replication.BusinessLogicSupport
Assembly:  Microsoft.SqlServer.Replication.BusinessLogicSupport (em Microsoft.SqlServer.Replication.BusinessLogicSupport.dll)

Sintaxe

'Declaração
Public Class BusinessLogicCommand _
    Implements IDbCommand, IDisposable
'Uso
Dim instance As BusinessLogicCommand
public class BusinessLogicCommand : IDbCommand, 
    IDisposable
public ref class BusinessLogicCommand : IDbCommand, 
    IDisposable
type BusinessLogicCommand =  
    class 
        interface IDbCommand 
        interface IDisposable 
    end
public class BusinessLogicCommand implements IDbCommand, IDisposable

O tipo BusinessLogicCommand expõe os membros a seguir.

Construtores

  Nome Descrição
Método público BusinessLogicCommand() Initializes a new instance of the BusinessLogicCommand class.
Método público BusinessLogicCommand(String) Initializes a new instance of the BusinessLogicCommand class.
Método público BusinessLogicCommand(BusinessLogicConnection) Initializes a new instance of the BusinessLogicCommand class.
Método público BusinessLogicCommand(BusinessLogicConnection, TempDBResultSet) Initializes a new instance of the BusinessLogicCommand class.
Método público BusinessLogicCommand(String, BusinessLogicConnection, BusinessLogicTransaction) Initializes a new instance of the BusinessLogicCommand class.

Início

Propriedades

  Nome Descrição
Propriedade pública CommandText Gets or sets the text command to run against the data source.
Propriedade pública CommandTimeout Gets or sets the time in seconds to wait for the command to execute.
Propriedade pública CommandType Gets or sets the command type.
Propriedade pública Connection Gets or sets the connection to the data source.
Propriedade pública Parameters Gets the collection of business logic parameters.
Propriedade pública Transaction Gets or sets the transaction within which the command executes.
Propriedade pública UpdatedRowSource Gets or sets the updated row source.

Início

Métodos

  Nome Descrição
Método público Cancel Cancels the execution of a BusinessLogicCommand.
Método público CreateParameter Creates a new instance of an IDbDataParameter object.
Método público Dispose Releases all resources used by the current instance of the BusinessLogicCommand.
Método público Equals (Herdado de Object.)
Método público ExecuteNonQuery Executes a statement against a connection object.
Método público ExecuteReader() Executes the CommandText against the Connection, and returns an IDataReader.
Método público ExecuteReader(CommandBehavior) Executes the CommandText against the Connection, and returns an IDataReader using one of the CommandBehavior.
Método público ExecuteScalar Executes the query and returns the first column of the first row in the result set returned by the query.
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 Prepare Creates a prepared version of the command on the data source.
Método público ToString (Herdado de Object.)

Início

Implementações de interfaces explícitas

  Nome Descrição
Implementações de interfaces explícitasPropriedade privada IDbCommand.Parameters Gets the IDataParameterCollection.

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.

Consulte também

Referência

Namespace Microsoft.SqlServer.Replication.BusinessLogicSupport