The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
RuntimeHelpers.CleanupCode Delegate
.NET Framework (current version)
Represents a method to run when an exception occurs.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- userData
-
Type:
System.Object
Data to pass to the delegate.
- exceptionThrown
-
Type:
System.Boolean
true to express that an exception was thrown; otherwise, false.
Use the RuntimeHelpers.CleanupCode delegate with the ExecuteCodeWithGuaranteedCleanup method.
.NET Framework
Available since 2.0
Available since 2.0
Show: