ExceptionExtensions.DisablePrepareForRethrow(Exception) Method

Definition

Mark the exception as ineligible for re-throwing.

public static Exception DisablePrepareForRethrow (this Exception exception);
static member DisablePrepareForRethrow : Exception -> Exception
<Extension()>
Public Function DisablePrepareForRethrow (exception As Exception) As Exception

Parameters

exception
Exception

The exception to be marked as ineligible for re-throwing.

Returns

The exception which has been marked as ineligible for re-throwing.

Applies to