Guid.TryWriteBytes(Span<Byte>) Method

Definition

Tries to write the current GUID instance into a span of bytes.

public:
 bool TryWriteBytes(Span<System::Byte> destination);
public bool TryWriteBytes (Span<byte> destination);
member this.TryWriteBytes : Span<byte> -> bool
Public Function TryWriteBytes (destination As Span(Of Byte)) As Boolean

Parameters

destination
Span<Byte>

When this method returns, the GUID as a span of bytes.

Returns

Boolean

true if the GUID is successfully written to the specified span; false otherwise.

Applies to