HttpDiagnosticSourceLocation 类

定义

包含 HTTP 活动的源位置。

public ref class HttpDiagnosticSourceLocation 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 HttpDiagnosticSourceLocation 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 HttpDiagnosticSourceLocation
Public NotInheritable Class HttpDiagnosticSourceLocation
继承
Object Platform::Object IInspectable HttpDiagnosticSourceLocation
属性

Windows 要求

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

注解

系统生成此类,可通过 HttpDiagnosticProviderRequestSentEventArgs.SourceLocations 属性进行访问。

HttpDiagnosticProviderRequestSentEventArgs 类作为参数传递给应用程序的 RequestSent 事件处理程序。

属性

ColumnNumber

获取列号。

LineNumber

获取行号。

SourceUri

获取源 URI。

适用于