HttpContextBase.AllowAsyncDuringSyncStages 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.
En cas d’implémentation dans une classe dérivée, obtient ou définit une valeur qui indique si les opérations asynchrones sont autorisées pendant les parties de ASP.NET traitement des demandes lorsqu’elles ne sont pas attendues.
public:
virtual property bool AllowAsyncDuringSyncStages { bool get(); void set(bool value); };
public virtual bool AllowAsyncDuringSyncStages { get; set; }
member this.AllowAsyncDuringSyncStages : bool with get, set
Public Overridable Property AllowAsyncDuringSyncStages As Boolean
Valeur de propriété
false si ASP.NET lève une exception lorsque l’API asynchrone est utilisée à un moment où elle n’est pas attendue ; sinon, true. La valeur par défaut est false.
Remarques
Pour plus d’informations, consultez HttpContext.AllowAsyncDuringSyncStages.