https://learn.microsoft.com/zh-tw/dotnet/api/system.web.hosting.iregisteredobject.stop?view=netframework-4.8.1
IRegisteredObject.Stop(Boolean) Method (System.Web.Hosting) | Microsoft Learn
Requests a registered object to unregister.
system webstopbooleanmethodhosting