我爱Aspx >> Asp.Net >> ASP.NET中用healthMonitor属性用法System.Web.Management.WebViewStateFailureAuditEvent
System.Web.Management.WebAuthenticationFailureAuditEvent
System.Web.Management.WebAuthenticationSuccessAuditEvent
可以使用这些事件来对一个provider画图。也可以创建通过WebBaseEvent类继承来的自己的事件。
为自动唤醒一个事件,可以使用WebBaseEvent类的唤醒方法:
try
{
//....
}
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网站漏洞[05-20]
八大法则防范ASP网站漏洞[05-20]
Asp.net中处理共享Session的问题[05-20]
ASP.NET应用程序设计的10大技巧[05-20]
ASP.NET 中防止 Access 数据库被..[05-20]
ASP.NET保持用户状态的九种选择(..[05-20]
asp.net URL重写续[05-20]
ASP.NET的实时天气及24小时天气预..[05-20]
asp动态include文件[05-20]
Asp生成条形码[05-20]
CSS的技巧[05-20]
八大法则防范ASP网站漏洞[05-20]
最好的在线配色器[05-20]
八大法则防范ASP网站漏洞[05-20]
Asp.net中处理共享Session的问题[05-20]
如何把上传文件的浏览按钮换成图..[05-20]
如何把上传文件的浏览按钮换成图..[05-20]
检测邮件的正则表达式[05-20]
recordset对象的常用属性及常用方..[05-20]
recordset对象的常用属性及常用方..[05-20]