編輯

共用方式為


ActivityTraceId.CreateFromUtf8String(ReadOnlySpan<Byte>) Method

Definition

Creates a new ActivityTraceId value from a read-only span of UTF8-encoded bytes.

public:
 static System::Diagnostics::ActivityTraceId CreateFromUtf8String(ReadOnlySpan<System::Byte> idData);
public static System.Diagnostics.ActivityTraceId CreateFromUtf8String (ReadOnlySpan<byte> idData);
static member CreateFromUtf8String : ReadOnlySpan<byte> -> System.Diagnostics.ActivityTraceId
Public Shared Function CreateFromUtf8String (idData As ReadOnlySpan(Of Byte)) As ActivityTraceId

Parameters

idData
ReadOnlySpan<Byte>

A read-only span of UTF8-encoded bytes.

Returns

The new trace ID.

Applies to