ActivityTraceId.CreateFromBytes(ReadOnlySpan<Byte>) Method

Definition

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

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

Parameters

idData
ReadOnlySpan<Byte>

A read-only span of 16 bytes.

Returns

ActivityTraceId

The new trace ID.

Exceptions

idData does not contain eight bytes.

Applies to