DataAsyncCommand.AsyncDeriveParameters, méthode

Dérive de, de façon asynchrone, un jeu de paramètres à utiliser avec une commande spécifiée.

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

Syntaxe

'Déclaration
Public Overridable Sub AsyncDeriveParameters ( _
    command As String, _
    commandType As Integer, _
    commandTimeout As Integer, _
    asyncCommandEvents As DataAsyncCommandEvents _
)
public virtual void AsyncDeriveParameters(
    string command,
    int commandType,
    int commandTimeout,
    DataAsyncCommandEvents asyncCommandEvents
)
public:
virtual void AsyncDeriveParameters(
    String^ command, 
    int commandType, 
    int commandTimeout, 
    DataAsyncCommandEvents^ asyncCommandEvents
)
abstract AsyncDeriveParameters : 
        command:string * 
        commandType:int * 
        commandTimeout:int * 
        asyncCommandEvents:DataAsyncCommandEvents -> unit  
override AsyncDeriveParameters : 
        command:string * 
        commandType:int * 
        commandTimeout:int * 
        asyncCommandEvents:DataAsyncCommandEvents -> unit
public function AsyncDeriveParameters(
    command : String, 
    commandType : int, 
    commandTimeout : int, 
    asyncCommandEvents : DataAsyncCommandEvents
)

Paramètres

  • command
    Type : String

    Commande pour lequel les paramètres sont dérivés.

  • commandType
    Type : Int32

    Format de la chaîne de commandes.

  • commandTimeout
    Type : Int32

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

Exceptions

Exception Condition
ArgumentNullException

La commande ou les asyncCommandEvents sont null.

ArgumentException

Le commandType spécifie un type non valide.

ArgumentOutOfRangeException

Le commandTimeout est inférieure à -1.

NotSupportedException

Le fournisseur ne prend pas en charge cette méthode.

Notes

Cette méthode exécute la même opération que la méthode d' DeriveParameters , mais de façon asynchrone.

Si la valeur du paramètre d' commandTimeout est 0, il n'y a aucun délai d'attente (ou, le délai d'attente est l'infini) ; si la valeur est -1, le délai d'attente est le jeu par le fournisseur de données.

Notes

D'autres exceptions qui se produisent indiquent que la dérivation de paramètre a échoué pour une raison fournisseur- spécifiée.

Sécurité .NET Framework

Voir aussi

Référence

DataAsyncCommand Classe

Microsoft.VisualStudio.Data, espace de noms