Condividi tramite


DataAsyncCommand.DeriveParametersAsync Method

Definition

Derives, in an asynchronous manner, a set of parameters for use with a specified command.

public:
 virtual void DeriveParametersAsync(System::String ^ command, Microsoft::VisualStudio::Data::Services::SupportEntities::DataCommandType commandType, int commandTimeout, System::Object ^ userState);
public void DeriveParametersAsync (string command, Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType commandType, int commandTimeout, object userState);
abstract member DeriveParametersAsync : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * int * obj -> unit
override this.DeriveParametersAsync : string * Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType * int * obj -> unit
Public Sub DeriveParametersAsync (command As String, commandType As DataCommandType, commandTimeout As Integer, userState As Object)

Parameters

command
String

Command for which the parameters are 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.

commandTimeout
Int32

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

userState
Object

A unique identifier for the asynchronous process.

Implements

Exceptions

The command or the userState parameter is null.

The commandTimeout parameter is less than -1.

Applies to