Compartilhar via


Método BusinessLogicCommand.ExecuteReader (CommandBehavior)

Executes the CommandText against the Connection, and returns an IDataReader using one of the CommandBehavior.

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

Sintaxe

'Declaração
Public Function ExecuteReader ( _
    behavior As CommandBehavior _
) As IDataReader
'Uso
Dim instance As BusinessLogicCommand 
Dim behavior As CommandBehavior 
Dim returnValue As IDataReader 

returnValue = instance.ExecuteReader(behavior)
public IDataReader ExecuteReader(
    CommandBehavior behavior
)
public:
virtual IDataReader^ ExecuteReader(
    CommandBehavior behavior
) sealed
abstract ExecuteReader : 
        behavior:CommandBehavior -> IDataReader  
override ExecuteReader : 
        behavior:CommandBehavior -> IDataReader
public final function ExecuteReader(
    behavior : CommandBehavior
) : IDataReader

Parâmetros

Valor de retorno

Tipo: System.Data.IDataReader
A data reader.

Implementa

IDbCommand.ExecuteReader(CommandBehavior)

Consulte também

Referência

BusinessLogicCommand Classe

Sobrecarregado ExecuteReader

Namespace Microsoft.SqlServer.Replication.BusinessLogicSupport