Guid.TryWriteBytes(Span<Byte>) Method

Definition

尝试将当前 GUID 实例写入字节范围。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>

此方法返回时,作为字节范围的 GUID。When this method returns, the GUID as a span of bytes.

Returns

Boolean

如果 GUID 已成功写入指定范围,则为 true;否则为 falsetrue if the GUID is successfully written to the specified span; false otherwise.

Applies to