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 标识的同步工作项与异步操作之间的关系。

注解

因果关系跟踪同步工作项可能与异步操作交互的方式。

适用于

另请参阅