ActivitySpanId.CreateFromUtf8String(ReadOnlySpan<Byte>) Method

Definition

从一个包含 UTF8 编码字节的只读范围创建一个新的 ActivitySpanId 值。Creates a new ActivitySpanId value from a read-only span of UTF8-encoded bytes.

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

Parameters

idData
ReadOnlySpan<Byte>

一个包含 UTF8 编码字节的只读范围。A read-only span of UTF8-encoded bytes.

Returns

ActivitySpanId

新的范围 ID。The new span ID.

Applies to