DataAsyncCommand.OnExecute 方法

定义

向同步方法调用调度异步执行操作 Execute(String, DataCommandType, IVsDataParameter[], Int32)

protected:
 virtual Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataReader ^ OnExecute(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType, cli::array <Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataParameter ^> ^ parameters, int commandTimeout);
protected virtual Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader OnExecute (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] parameters, int commandTimeout);
abstract member OnExecute : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] * int -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
override this.OnExecute : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[] * int -> Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Protected Overridable Function OnExecute (command As String, commandType As DataCommandType, parameters As IVsDataParameter(), commandTimeout As Integer) As IVsDataReader

参数

command
String

为其派生架构的命令。

commandType
DataCommandType

一个来自枚举的值,该值 DataCommandType 表示指定命令的命令类型。 值指定如何解释参数的内容 command

parameters
IVsDataParameter[]

要与命令一起传递的参数的列表。

commandTimeout
Int32

命令超时之前的时间量(以秒为单位)。

返回

IVsDataReader

一个 IVsDataReader 对象,该对象提供来自数据源的只进只读流。

适用于