DataAsyncCommand.AsyncExecute Method

Definition

Executes a command in an asynchronous manner.

public:
 virtual void AsyncExecute(System::String ^ command, int commandType, cli::array <Microsoft::VisualStudio::Data::DataParameter ^> ^ parameters, int commandTimeout, Microsoft::VisualStudio::Data::DataAsyncCommandEvents ^ asyncCommandEvents);
public virtual void AsyncExecute (string command, int commandType, Microsoft.VisualStudio.Data.DataParameter[] parameters, int commandTimeout, Microsoft.VisualStudio.Data.DataAsyncCommandEvents asyncCommandEvents);
abstract member AsyncExecute : string * int * Microsoft.VisualStudio.Data.DataParameter[] * int * Microsoft.VisualStudio.Data.DataAsyncCommandEvents -> unit
override this.AsyncExecute : string * int * Microsoft.VisualStudio.Data.DataParameter[] * int * Microsoft.VisualStudio.Data.DataAsyncCommandEvents -> unit
Public Overridable Sub AsyncExecute (command As String, commandType As Integer, parameters As DataParameter(), commandTimeout As Integer, asyncCommandEvents As DataAsyncCommandEvents)

Parameters

command
String

The command to be executed.

commandType
Int32

Format of the command string.

parameters
DataParameter[]

A list of parameters to pass with the command.

commandTimeout
Int32

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

asyncCommandEvents
DataAsyncCommandEvents

The object on which this method calls back as the command progresses.

Exceptions

The command or asyncCommandEvents are null.

The commandType specifies an invalid type.

The commandTimeout is less than -1.

The provider does not support this method.

Applies to