Share via


DataAsyncCommand.OnPrepare, méthode

Distribue l'asynchrone préparer l'exécution à l'appel de méthode synchrone d' Prepare .

Espace de noms :  Microsoft.VisualStudio.Data.Framework
Assembly :  Microsoft.VisualStudio.Data.Framework (dans Microsoft.VisualStudio.Data.Framework.dll)

Syntaxe

'Déclaration
Protected Overridable Function OnPrepare ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter(), _
    commandTimeout As Integer _
) As String
protected virtual string OnPrepare(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters,
    int commandTimeout
)
protected:
virtual String^ OnPrepare(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters, 
    int commandTimeout
)
abstract OnPrepare : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] * 
        commandTimeout:int -> string  
override OnPrepare : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] * 
        commandTimeout:int -> string
protected function OnPrepare(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[], 
    commandTimeout : int
) : String

Paramètres

  • command
    Type : String

    La commande pour laquelle le schéma est dérivé.

  • commandTimeout
    Type : Int32

    Durée, en secondes, pendant lesquelles la commande l'heure.

Valeur de retour

Type : String
Un identificateur de la commande préparée qui peut ensuite être passée à l' Execute ou méthodes d' ExecuteWithoutResults à l'aide de la commande tapez Prepared.

Sécurité .NET Framework

Voir aussi

Référence

DataAsyncCommand Classe

Microsoft.VisualStudio.Data.Framework, espace de noms