Partager via


IVsDataAsyncCommand.PrepareAsync Method

When implemented by a class, prepares, in an asynchronous manner, the specified command to be executed against the data source; the command can then be executed multiple times, with varying parameters.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Déclaration
Sub PrepareAsync ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter(), _
    commandTimeout As Integer, _
    userState As Object _
)
void PrepareAsync(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters,
    int commandTimeout,
    Object userState
)
void PrepareAsync(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters, 
    int commandTimeout, 
    Object^ userState
)
abstract PrepareAsync : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] * 
        commandTimeout:int * 
        userState:Object -> unit 
function PrepareAsync(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[], 
    commandTimeout : int, 
    userState : Object
)

Parameters

  • commandTimeout
    Type: System.Int32
    Amount of time, in seconds, before which the command times out.
  • userState
    Type: System.Object
    The object on which this method calls back as the command progresses.

.NET Framework Security

See Also

Reference

IVsDataAsyncCommand Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace