共用方式為


AsyncCausalityTracer.TraceOperationCompletion 方法

定義

表示先前建立的非同步作業已完成其所有非同步工作。

public:
 static void TraceOperationCompletion(CausalityTraceLevel traceLevel, CausalitySource source, Platform::Guid platformId, unsigned long long operationId, AsyncStatus status);
 static void TraceOperationCompletion(CausalityTraceLevel const& traceLevel, CausalitySource const& source, winrt::guid const& platformId, uint64_t const& operationId, AsyncStatus const& status);
public static void TraceOperationCompletion(CausalityTraceLevel traceLevel, CausalitySource source, Guid platformId, ulong operationId, AsyncStatus status);
function traceOperationCompletion(traceLevel, source, platformId, operationId, status)
Public Shared Sub TraceOperationCompletion (traceLevel As CausalityTraceLevel, source As CausalitySource, platformId As Guid, operationId As ULong, status As AsyncStatus)

參數

traceLevel
CausalityTraceLevel

追蹤層級。

source
CausalitySource

追蹤來源。

platformId
Guid

Platform::Guid

winrt::guid

作業類型的識別碼。

operationId
UInt64

unsigned long long

uint64_t

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

status
AsyncStatus

非同步作業的完成狀態。

備註

此函式用來指出先前建立的非同步作業已完成其所有非同步工作。 作業在記錄完成之後可能會排程的唯一工作是完成接續。 operationIdplatformId參數必須符合先前由TraceOperationCreation方法呼叫所記錄的非同步作業。

適用於

另請參閱