HttpDiagnosticProviderResponseReceivedEventArgs 类

定义

提供 ResponseReceived 事件的数据。

public ref class HttpDiagnosticProviderResponseReceivedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Web.Http.Diagnostics.HttpDiagnosticsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpDiagnosticProviderResponseReceivedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Web.Http.Diagnostics.HttpDiagnosticsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpDiagnosticProviderResponseReceivedEventArgs
Public NotInheritable Class HttpDiagnosticProviderResponseReceivedEventArgs
继承
Object Platform::Object IInspectable HttpDiagnosticProviderResponseReceivedEventArgs
属性

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.10240.0 中引入)
API contract
Windows.Web.Http.Diagnostics.HttpDiagnosticsContract (在 v1.0 中引入)

注解

系统生成此类,并将其作为参数传递给应用程序的 ResponseReceived 事件处理程序。

属性

ActivityId

获取此活动的本地唯一 ID,以便与其他事件相关联。

Message

获取 HttpResponseMessage ,包括标头、状态代码和数据。

Timestamp

获取收到 HttpResponseMessage 的时间戳。

适用于