Skip to content

Commit 017f8e8

Browse files
Update remarks for UnhandledException event (#11849)
Added clarification that handlers may be invoked multiple times if exceptions are thrown from different threads.
1 parent e2c13bc commit 017f8e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xml/System/AppDomain.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8821,7 +8821,10 @@ The friendly name of the default application domain is the file name of the proc
88218821
</ReturnValue>
88228822
<Docs>
88238823
<summary>Occurs when an exception is not caught.</summary>
8824-
<remarks>For more information about this API, see <see href="/dotnet/fundamentals/runtime-libraries/system-appdomain-unhandledexception">Supplemental API remarks for UnhandledException</see>.</remarks>
8824+
<remarks>
8825+
Handlers may be invoked multiple times if exceptions are thrown from different threads.
8826+
8827+
For more information about this API, see <see href="/dotnet/fundamentals/runtime-libraries/system-appdomain-unhandledexception">Supplemental API remarks for UnhandledException</see>.</remarks>
88258828
<example>
88268829
<format type="text/markdown"><![CDATA[
88278830
The following example demonstrates the <xref:System.AppDomain.UnhandledException> event. It defines an event handler, `MyHandler`, that is invoked whenever an unhandled exception is thrown in the default application domain. It then throws two exceptions. The first is handled by a **try/catch** block. The second is unhandled and invokes the `MyHandle` routine before the application terminates.

0 commit comments

Comments
 (0)