共用方式為


DataAsyncCommand.AsyncExecuteWithoutResults Method

Definition

Executes, in an asynchronous manner, a command that does not return any results beyond an integer value indicating status.

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