From 813bbfbcbc8d70e2eedc91e744525b7affa8a1c3 Mon Sep 17 00:00:00 2001 From: Aaron Robinson Date: Fri, 10 May 2019 15:02:14 -0700 Subject: [PATCH] Update ComUnregisterFunctionAttribute.xml --- .../ComUnregisterFunctionAttribute.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xml/System.Runtime.InteropServices/ComUnregisterFunctionAttribute.xml b/xml/System.Runtime.InteropServices/ComUnregisterFunctionAttribute.xml index 44ab70198eb..e8cb2e550e7 100644 --- a/xml/System.Runtime.InteropServices/ComUnregisterFunctionAttribute.xml +++ b/xml/System.Runtime.InteropServices/ComUnregisterFunctionAttribute.xml @@ -42,11 +42,11 @@ ## Remarks You can apply this attribute to methods. - enables you to add code that reverses the operations performed by a registration method. If you apply the to provide a registration method, you must also provide an unregistration method to reverse the operations done in the registration method. You can have only one unregistration method for a class. - - The common language runtime calls the method with this attribute when its containing assembly is unregistered (directly or indirectly) with the [Regasm.exe (Assembly Registration Tool)](~/docs/framework/tools/regasm-exe-assembly-registration-tool.md) or through the API method. Methods with this attribute can have any visibility (public, private, and so on), but must be `static` and must take a single parameter for the to unregister. - - + `ComUnregisterFunctionAttribute` enables you to add code that reverses the operations performed by a registration method. If you apply the to provide a registration method, you should also provide an unregistration method to reverse the operations done in the registration method. You can have only one unregistration method for a class. + +**.NET Framework:** The common language runtime calls the method with this attribute when its containing assembly is unregistered (directly or indirectly) with the [Regasm.exe (Assembly Registration) tool)](~/docs/framework/tools/regasm-exe-assembly-registration-tool.md) or through the method. + + **.NET Core:** The common language runtime calls the method with this attribute when its containing assembly's COM host is unregistered via the [RegSvr32.exe tool](https://docs.microsoft.com/windows-server/administration/windows-commands/regsvr32). ## Examples The following example demonstrates applying and to methods with the appropriate signature. @@ -93,4 +93,4 @@ - \ No newline at end of file +