共用方式為


AsyncCausalityTracer.TraceOperationRelation 方法

定義

記錄目前執行中同步工作專案與其相關之特定非同步作業之間的關聯性。

public:
 static void TraceOperationRelation(CausalityTraceLevel traceLevel, CausalitySource source, Platform::Guid platformId, unsigned long long operationId, CausalityRelation relation);
 static void TraceOperationRelation(CausalityTraceLevel const& traceLevel, CausalitySource const& source, winrt::guid const& platformId, uint64_t const& operationId, CausalityRelation const& relation);
public static void TraceOperationRelation(CausalityTraceLevel traceLevel, CausalitySource source, Guid platformId, ulong operationId, CausalityRelation relation);
function traceOperationRelation(traceLevel, source, platformId, operationId, relation)
Public Shared Sub TraceOperationRelation (traceLevel As CausalityTraceLevel, source As CausalitySource, platformId As Guid, operationId As ULong, relation As CausalityRelation)

參數

traceLevel
CausalityTraceLevel

追蹤層級。

source
CausalitySource

追蹤來源。

platformId
Guid

Platform::Guid

winrt::guid

作業類型的識別碼。

operationId
UInt64

unsigned long long

uint64_t

在作業存留期的平臺內唯一之非同步作業的識別碼。

relation
CausalityRelation

同步工作專案與 operationId所識別之非同步作業之間的關聯性。

備註

因果關係會追蹤同步工作專案可能會與非同步作業互動的方式。

適用於

另請參閱