IisTraceWebEventProvider 类

定义

表示将 ASP.NET 跟踪事件路由到 IIS 7.0 基础结构的事件提供程序。Represents an event provider that routes ASP.NET tracing events to the IIS 7.0 infrastructure.

public ref class IisTraceWebEventProvider sealed : System::Web::Management::WebEventProvider
public sealed class IisTraceWebEventProvider : System.Web.Management.WebEventProvider
type IisTraceWebEventProvider = class
    inherit WebEventProvider
Public NotInheritable Class IisTraceWebEventProvider
Inherits WebEventProvider
继承
IisTraceWebEventProvider

注解

ASP.NET 运行状况监视使管理员能够管理已部署的 Web 应用程序。ASP.NET health monitoring enables administrators to manage deployed Web applications. System.Web.Management命名空间包含获取运行状况数据的事件类型和处理此数据的提供程序类型。The System.Web.Management namespace contains the event types that obtain health-status data and the provider types that process this data. 它还包含有助于管理运行状况事件的支持类型。It also contains supporting types that help you manage health events.

类是自定义的运行状况事件提供程序, 它通过IIS 7.0IIS 7.0跟踪基础结构来处理 ASP.NET 跟踪事件。 IisTraceWebEventProviderThe IisTraceWebEventProvider class is a customized health-event provider that processes ASP.NET tracing events by routing them through the IIS 7.0IIS 7.0 tracing infrastructure. 仅当在 ASP.NET 中启用了跟踪时才会进行此路由。This routing occurs only when tracing is enabled in ASP.NET.

IisTraceWebEventProvider在中.NET Framework 3.5.NET Framework 3.5引入。IisTraceWebEventProvider is introduced in the .NET Framework 3.5.NET Framework 3.5. 有关详细信息,请参见版本和依赖关系For more information, see Versions and Dependencies.

备注

此类不将跟踪IIS 7.0IIS 7.0事件路由到 ASP.NET 页事件。This class does not route IIS 7.0IIS 7.0 trace events into ASP.NET page events.

构造函数

IisTraceWebEventProvider()

初始化 IisTraceWebEventProvider 类的新实例。Initializes a new instance of the IisTraceWebEventProvider class.

属性

Description

获取一条简短的易懂描述,它适合在管理工具或其他用户界面 (UI) 中显示。Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs).

(继承自 ProviderBase)
Name

获得一个友好名称,用于在配置过程中引用提供程序。Gets the friendly name used to refer to the provider during configuration.

(继承自 ProviderBase)

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Flush()

将事件从提供程序缓冲区移到事件日志中。Moves the events from the provider's buffer into the event log.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Initialize(String, NameValueCollection)

使用处理事件所需的数据初始化 IisTraceWebEventProvider 的新实例。Initializes a new instance of the IisTraceWebEventProvider with the data that is necessary to process events.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ProcessEvent(WebBaseEvent)

处理传递给提供程序的事件。Processes the event that was passed to the provider.

Shutdown()

执行与关闭提供程序相关联的任务。Performs tasks that are associated with shutting down the provider.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于