次の方法で共有


DataAsyncCommand.AsyncPrepare Method

Definition

Prepares, in an asynchronous manner, the specified command to be executed against the data source; the command may then be executed multiple times, with varying parameters.

public:
 virtual void AsyncPrepare(System::String ^ command, int commandType, int commandTimeout, Microsoft::VisualStudio::Data::DataAsyncCommandEvents ^ asyncCommandEvents);
public virtual void AsyncPrepare (string command, int commandType, int commandTimeout, Microsoft.VisualStudio.Data.DataAsyncCommandEvents asyncCommandEvents);
abstract member AsyncPrepare : string * int * int * Microsoft.VisualStudio.Data.DataAsyncCommandEvents -> unit
override this.AsyncPrepare : string * int * int * Microsoft.VisualStudio.Data.DataAsyncCommandEvents -> unit
Public Overridable Sub AsyncPrepare (command As String, commandType As Integer, commandTimeout As Integer, asyncCommandEvents As DataAsyncCommandEvents)

Parameters

command
String

The command to be prepared.

commandType
Int32

Format of the command string.

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