当前第2页 返回上一页
这里有一些ASP .NET 2.0一起发布的事件:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | System.Web.Management.WebBaseEvent
System.Web.Management.WebHeartBeatEvent
System.Web.Management.WebApplicationLifetimeEvent
System.Web.Management.WebRequestEvent
System.Web.Management.WebBaseErrorEvent
System.Web.Management.WebErrorEvent
System.Web.Management.WebRequestErrorEvent
System.Web.Management.WebAuditEvent
System.Web.Management.WebFailureAuditEvent
System.Web.Management.WebSuccessAuditEvent
System.Web.Management.WebManagementEvent
System.Web.Management.WebViewStateFailureAuditEvent
System.Web.Management.WebAuthenticationFailureAuditEvent
System.Web.Management.WebAuthenticationSuccessAuditEvent
|
可以使用这些事件来对一个provider画图。也可以创建通过WebBaseEvent类继承来的自己的事件。
为自动唤醒一个事件,可以使用WebBaseEvent类的唤醒方法:
1 2 3 | catch(Exception e){ if (HealthMonitoringManager.Enabled) { WebBaseEvent.Raise(new WebErrorEvent( "My Error message" , null, 5000 , e)); }}
or:
if (HealthMonitoringManager.Enabled){ WebErrorEvent event = new WebErrorEvent( "My error message" , null, 5000 , e); event.Raise();}
|
以上就是ASP.NET中healthMonitor属性的用法教程的详细内容!
返回前面的内容
相关阅读 >>
asp.net控制文件上传的大小方法(超简单)_实用技巧
《asp.net》数据的绑定―repeater图文详解
介绍asp.net使用session的方法
分析asp.net 2.0 session 丢失的几种情况
利用razor引擎生成静态页(asp.net mvc)实例详解
[asp.net mvc 小牛之路]05 - 使用 ninject
理解asp.net中webform的生命周期_实用技巧
asp.net简单的格式转换方法
asp.net mvc 使用bootstrap方法介绍
有关asp.net core 中的多语言支持的详细介绍
更多相关阅读请进入《healthMonitor》频道 >>
清华大学出版社
作者:[美]克里斯琴·内格尔(Christian Nagel)著。出版时间:2019年3月。
转载请注明出处:木庄网络博客 » ASP.NET中healthMonitor属性的用法教程