Terminates the current process and sets the process exit code to the specified value.
- exitCode
- A int value that is provided to the operating system.
Type Reason System.Security.Permissions.EnvironmentPermission Requires permission to read environment variables. See System.Security.Permissions.EnvironmentPermissionAccess.Read. System.Security.Permissions.SecurityPermission Requires unmanaged code permission. See System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode.
Type Reason System.Security.SecurityException The immediate caller does not have the required permission.
This method causes an executing program to halt.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0