共用方式為


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。

適用於