Specifies the policy action the common language runtime (CLR) should take when the specified operation occurs.
SetDefaultAction returned successfully.
The CLR has not been loaded into a process, or the CLR is in a state in which it cannot run managed code or process the call successfully.
The call timed out.
The caller does not own the lock.
An event was canceled while a blocked thread or fiber was waiting on it.
An unknown catastrophic failure occurred. After a method returns E_FAIL, the CLR is no longer usable within the process. Subsequent calls to hosting methods return HOST_E_CLRNOTAVAILABLE.
An invalid action was specified for the operation, or an invalid value was supplied for operation.
Not all policy action values can be specified as the default behavior for CLR operations. SetDefaultAction can typically be used only to escalate behavior. For example, a host can specify that thread aborts be turned into rude thread aborts, but cannot specify the opposite. The table below describes the valid action values for each possible operation value.
Value for operation
Valid values for action
Platforms: See .NET Framework System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 2.0