ApplicationShutdownReason 枚举

定义

指定 AppDomain 类为何关闭。Specifies why the AppDomain class shut down.

public enum class ApplicationShutdownReason
public enum ApplicationShutdownReason
type ApplicationShutdownReason = 
Public Enum ApplicationShutdownReason
继承
ApplicationShutdownReason

字段

BinDirChangeOrDirectoryRename 6

Bin 文件夹已更改,或其中的文件已更改。A change was made to the Bin folder or to files in it.

BrowsersDirChangeOrDirectoryRename 7

App_Browsers 文件夹已更改,或其中的文件已更改。A change was made to the App_Browsers folder or to files in it.

BuildManagerChange 15

编译系统关闭了应用程序域。The compilation system shut the application domain. BuildManagerChange 成员是在 .NET Framework 3.5 版本中引入的。The BuildManagerChange member is introduced in the .NET Framework version 3.5. 有关详细信息,请参见 .NET Framework 版本和依赖关系For more information, see .NET Framework Versions and Dependencies.

ChangeInGlobalAsax 2

Global.asax 文件已更改。A change was made to the Global.asax file.

ChangeInSecurityPolicyFile 5

代码访问安全性策略文件已更改。A change was made in the code access security policy file.

CodeDirChangeOrDirectoryRename 8

App_Code 文件夹已更改,或其中的文件已更改。A change was made to the App_Code folder or to files in it.

ConfigurationChange 3

应用程序级配置文件已更改。A change was made to the application-level configuration file.

HostingEnvironment 1

宿主环境关闭了应用程序域。The hosting environment shut down the application domain.

HttpRuntimeClose 12

已调用 Close()A call was made to Close().

IdleTimeout 10

已达到最长空闲时间限制。The maximum idle time limit was reached.

InitializationError 13

出现 AppDomain 初始化错误。An AppDomain initialization error occurred.

MaxRecompilationsReached 14

已达到资源的动态重新编译最大次数。The maximum number of dynamic recompiles of resources was reached.

None 0

未提供关闭原因。No shutdown reason was provided.

PhysicalApplicationPathChanged 11

应用程序的物理路径已更改。A change was made to the physical path of the application.

ResourcesDirChangeOrDirectoryRename 9

App_GlobalResources 文件夹已更改,或其中的文件已更改。A change was made to the App_GlobalResources folder or to files in it.

UnloadAppDomainCalled 4

已调用 UnloadAppDomain()A call was made to UnloadAppDomain().

注解

表示类的ShutdownReason属性 HostingEnvironment的可能值。 ApplicationShutdownReasonThe ApplicationShutdownReason represents the possible values for the ShutdownReason property of the HostingEnvironment class.

适用于

另请参阅