Метод | Описание | |
---|---|---|
IsFatal ( |
It is mandatory to use this function inside your finalizer to guard the finalizer thread against exceptions. Determines whether the specified exception is fatal and should be propagated to the next layer regardless of your current exception policy. An exception is considered fatal is it is one of the following types: NullReferenceException, StackOverflowException, OutOfMemoryException, ThreadAbortException, ExecutionEngineException, IndexOutOfRangeException or AccessViolationException
|
|
IsSecurityOrFatal ( |
Determines whether the exception is a security or fatal exception. Use this functions in security relevant code inside any catch(Exception ex) handler to prevent swallowing relevant exceptions.
|
|
WhenException ( System.Action executeWhenExceptionHasOccured ) : void |
Normally used in a finally block to execute code when an exception has occured.
|
public static IsFatal ( |
||
ex | The exception to check. | |
Результат | bool |
public static IsSecurityOrFatal ( |
||
ex | The exception to test. | |
Результат | bool |
public static WhenException ( System.Action executeWhenExceptionHasOccured ) : void | ||
executeWhenExceptionHasOccured | System.Action | The method to execute when exception has occured. |
Результат | void |