Condividi tramite


Metodo IVsDataAsyncCommand.PrepareAsync

Se implementata da una classe, prepara, in modo asincrono, il comando specificato essere eseguito sull'origine dati, il comando può essere eseguito più volte, con parametri variabili.

Spazio dei nomi:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Sintassi

'Dichiarazione
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
)

Parametri

  • command
    Tipo: String

    Comando da eseguire.

  • commandTimeout
    Tipo: Int32

    Quantità di tempo, in secondi, prima della quale il comando scade.

  • userState
    Tipo: Object

    L'oggetto su cui questo metodo chiama che supportano come il comando avanza.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsDataAsyncCommand Interfaccia

Spazio dei nomi Microsoft.VisualStudio.Data.Services.SupportEntities