OleDbCommand.CommandTimeout Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit le temps d’attente (en secondes) avant de terminer une tentative d’exécution d’une commande et de générer une erreur.
public:
property int CommandTimeout { int get(); void set(int value); };
public:
virtual property int CommandTimeout { int get(); void set(int value); };
[System.Data.DataSysDescription("DbCommand_CommandTimeout")]
public int CommandTimeout { get; set; }
public override int CommandTimeout { get; set; }
[<System.Data.DataSysDescription("DbCommand_CommandTimeout")>]
member this.CommandTimeout : int with get, set
member this.CommandTimeout : int with get, set
Public Property CommandTimeout As Integer
Public Overrides Property CommandTimeout As Integer
Valeur de propriété
Durée (en secondes) d’attente de l’exécution de la commande. La valeur par défaut est de 30 secondes.
Implémente
- Attributs
Remarques
La valeur 0 indique aucune limite et doit être évitée dans un CommandTimeout cas, car une tentative d’exécution d’une commande attend indéfiniment.