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 方法记录的异步操作匹配。

适用于

另请参阅