DataAsyncCommand.OnExecute, méthode

Distribue l'asynchrone exécutent l'exécution à l'appel de méthode synchrone d' Execute .

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

Syntaxe

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

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 : Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Un objet d' IVsDataReader , qui fournit un flux avant uniquement en lecture seule de la source de données.

Sécurité .NET Framework

Voir aussi

Référence

DataAsyncCommand Classe

Microsoft.VisualStudio.Data.Framework, espace de noms