Guid.TryWriteBytes(Span<Byte>) 方法

定義

嘗試將目前的 GUID 執行個體寫入到位元組範圍。

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

參數

destination
Span<Byte>

當此方法傳回時,以位元組範圍表示的 GUID。

傳回

Boolean

true 如果 GUID 已成功寫入指定的範圍,則為 ; false 否則。

適用於