HttpWorkerRequest.RequestTraceIdentifier 属性

定义

获取当前请求的 Windows 跟踪 ID 的对应事件跟踪。Gets the corresponding Event Tracking for Windows trace ID for the current request.

public:
 virtual property Guid RequestTraceIdentifier { Guid get(); };
public virtual Guid RequestTraceIdentifier { get; }
member this.RequestTraceIdentifier : Guid
Public Overridable ReadOnly Property RequestTraceIdentifier As Guid

属性值

Guid

当前 ASP.NET 请求的跟踪 ID。A trace ID for the current ASP.NET request.

注解

ASP.NET 请求的执行与对应的 IIS 请求的跟踪 ID 相同。ASP.NET requests execute with the same trace ID as the corresponding IIS request. 这有助于在整个生存期中跟踪请求,从 HTTP.SYS 内核模式 HTTP 侦听器开始,到 IIS 服务,再到 ASP.NET 系统。This facilitates tracking a request throughout its lifetime, starting with the HTTP.SYS kernel-mode HTTP listener, through the IIS service, and into the ASP.NET system. IIS 提供的 Id 因平台和 Service Pack 级别而异。The IDs provided by IIS differ based on the platform and service pack level.

适用于

另请参阅