ActivitySpanId.CreateFromBytes(ReadOnlySpan<Byte>) Method

Definition

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

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

Parameters

idData
ReadOnlySpan<Byte>

一个包含 8 个字节的只读范围。A read-only span of eight bytes.

Returns

ActivitySpanId

新的范围 ID。The new span ID.

Exceptions

idData 不包含 8 个字节。idData does not contain eight bytes.

Applies to