AsyncCausalityTracer.TraceOperationRelation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
記錄目前執行中同步工作專案與其相關之特定非同步作業之間的關聯性。
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所識別之非同步作業之間的關聯性。
備註
因果關係會追蹤同步工作專案可能會與非同步作業互動的方式。