处理和引发事件
NET Framework 开发人员指南 |
处理和引发事件 |
[发送反馈意见](mailto:DevDocs@Microsoft.com?subject=%E5%A4%84%E7%90%86%E5%92%8C%E5%BC%95%E5%8F%91%E4%BA%8B%E4%BB%B6%20%28/1:/2:03.00/3:03.00.07270.100010/4:dv_fxfund/5:ms-help://MS.MSDNQTR.v90.chs/dv_fxfund/html/b6f65241-e0ad-4590-a99f-200ce741bb1f.htm/6:0/7:h/8:zh-cn/9:2007%29&body=%0d%bf%aa%b7%a2%c8%cb%d4%b1%ce%c4%b5%b5%b1%e0%d0%b4%cd%c5%b6%d3%bd%ab%c4%fa%b5%c4%b7%b4%c0%a1%d3%c3%d3%da%b8%c4%bd%f8%ce%c4%b5%b5%a1%a3%ce%d2%c3%c7%b2%bb%bb%e1%bd%ab%c4%fa%b5%c4%b5%e7%d7%d3%d3%ca%bc%fe%b5%d8%d6%b7%d3%c3%d3%da%c8%ce%ba%ce%c6%e4%cb%fb%d3%c3%cd%be%a3%ac%b2%a2%c7%d2%d4%da%bd%e2%be%f6%c1%cb%c4%fa%b1%a8%b8%e6%b5%c4%ce%ca%cc%e2%d6%ae%ba%f3%a3%ac%ce%d2%c3%c7%bd%ab%b2%bb%bb%e1%d4%d9%b1%a3%c1%f4%c4%fa%b5%c4%b5%e7%d7%d3%d3%ca%bc%fe%b5%d8%d6%b7%a1%a3%ce%d2%c3%c7%d2%aa%ca%d4%cd%bc%bd%e2%be%f6%c4%fa%b1%a8%b8%e6%b5%c4%ce%ca%cc%e2%ca%b1%a3%ac%bf%c9%c4%dc%d2%aa%cf%f2%c4%fa%b7%a2%cb%cd%b5%e7%d7%d3%d3%ca%bc%fe%d2%d4%bb%f1%b5%c3%d3%d0%b9%d8%c4%fa%b7%a2%cb%cd%b8%f8%ce%d2%c3%c7%b5%c4%b7%b4%c0%a1%b5%c4%bd%f8%d2%bb%b2%bd%cf%ea%cf%b8%d0%c5%cf%a2%bb%f2%bd%e2%ca%cd%cb%b5%c3%f7%a1%a3%d4%da%bd%e2%be%f6%c1%cb%c4%fa%b1%a8%b8%e6%b5%c4%ce%ca%cc%e2%d6%ae%ba%f3%a3%ac%ce%d2%c3%c7%bf%c9%c4%dc%bb%e1%b7%a2%cb%cd%b5%e7%d7%d3%d3%ca%bc%fe%cd%a8%d6%aa%c4%fa%b8%c3%b7%b4%c0%a1%d2%d1%bd%e2%be%f6%a1%a3%0a%d3%d0%b9%d8%20Microsoft%20%b5%c4%d2%fe%cb%bd%b2%df%c2%d4%b5%c4%cf%ea%cf%b8%d0%c5%cf%a2%a3%ac%c7%eb%b2%ce%bc%fb%20http%3a%2f%2fprivacy.microsoft.com%2fzh-cn%2fdefault.aspx%a1%a3%0a%0d) |
.NET Framework 中的事件是基于委托模型的。(那些熟悉面向对象编程中的设计模式的人将注意到观察程序设计模式。) 本节包含的主题描述委托模型,说明如何在应用程序中使用事件并描述如何从您的类引发事件。
有关特定编程语言中事件语法的详细信息,请参见相应语言的文档。