DataAsyncCommand.OnExecute Method

Definition

Dispatches the asynchronous execute operation to the synchronous Execute(String, DataCommandType, IVsDataParameter[], Int32) method call.

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

Parameters

command
String

The command for which the schema is derived.

commandType
DataCommandType

A value from the DataCommandType enumeration representing the command type for the indicated command. The value specifies how to interpret the contents of the command parameter.

parameters
IVsDataParameter[]

A list of parameters to pass with the command.

commandTimeout
Int32

Amount of time, in seconds, before which the command times out.

Returns

An IVsDataReader object, which provides a forward-only, read-only stream from the data source.

Applies to