我注意到 MSDN 在提及事件及其事件处理程序时多次使用“错误”术语。例如:
The ProfileAutoSaving event is raised at the end of page execution if the ProfileManager.AutomaticSaveEnabled property is true. You can access the ProfileAutoSaving event of the ProfileModule class in the Global.asax file for your ASP.NET application using the Profile_ProfileAutoSaving global event
为什么上面的引用将 Profile_ProfileAutoSaving 描述为全局事件,而据我所知,它实际上是订阅 ProfileAutoSaving 事件的事件处理程序?!
谢谢
最佳答案
它是全局事件吗,因为它位于 Global.asax 文件中?这有什么问题吗?
编辑:我不确定“全局事件”和“事件处理程序”之间的区别。这些并不是相互排斥的描述。本质上,这是一个全局事件处理程序。
关于c# - MSDN 在提及事件及其事件处理程序时是否使用了错误的术语?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1009669/