HttpContext.AsyncPreloadMode 属性

定义

获取或设置包含适用于异步预加载模式的标志的对象。Gets or sets an object that contains flags that pertain to asynchronous preload mode.

public:
 property System::Web::Configuration::AsyncPreloadModeFlags AsyncPreloadMode { System::Web::Configuration::AsyncPreloadModeFlags get(); void set(System::Web::Configuration::AsyncPreloadModeFlags value); };
public System.Web.Configuration.AsyncPreloadModeFlags AsyncPreloadMode { get; set; }
member this.AsyncPreloadMode : System.Web.Configuration.AsyncPreloadModeFlags with get, set
Public Property AsyncPreloadMode As AsyncPreloadModeFlags

属性值

包含适用于异步预加载模式的标志的对象。An object that contains flags that pertain to asynchronous preload mode.

注解

首次访问此属性时,将从配置文件中的 AsyncPreloadMode 设置加载包含异步预加载模式的标志的对象。The first time this property is accessed, the object that contains flags for asynchronous preload mode is loaded from the AsyncPreloadMode setting in the configuration file.

尽管可以以编程方式设置此属性,只有该属性在 ASP.NET 请求管道中的 ExecuteRequestHandler 步骤之前设置,更改属性值才起作用。Although this property can be set programmatically, changing the property value only has effect if the property is set before the ExecuteRequestHandler step in the ASP.NET request pipeline.

适用于