共用方式為


BusinessLogicCommand.ExecuteReader 方法 (CommandBehavior)

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

命名空間:  Microsoft.SqlServer.Replication.BusinessLogicSupport
組件:  Microsoft.SqlServer.Replication.BusinessLogicSupport (在 Microsoft.SqlServer.Replication.BusinessLogicSupport.dll 中)

語法

'宣告
Public Function ExecuteReader ( _
    behavior As CommandBehavior _
) As IDataReader
'用途
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

參數

傳回值

型別:System.Data.IDataReader
A data reader.

實作

IDbCommand.ExecuteReader(CommandBehavior)

請參閱

參考

BusinessLogicCommand 類別

ExecuteReader 多載

Microsoft.SqlServer.Replication.BusinessLogicSupport 命名空間