Guid.TryWriteBytes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| TryWriteBytes(Span<Byte>) |
嘗試將目前的 GUID 實例寫入一個位元組區間。 |
| TryWriteBytes(Span<Byte>, Boolean, Int32) |
嘗試將目前的 GUID 實例寫入一個位元組區間,並使用指定的字節序。 |
TryWriteBytes(Span<Byte>)
- 來源:
- Guid.cs
- 來源:
- Guid.cs
- 來源:
- Guid.cs
- 來源:
- Guid.cs
- 來源:
- Guid.cs
嘗試將目前的 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
參數
傳回
true 若 GUID 成功寫入指定範圍; false 否則,
適用於
TryWriteBytes(Span<Byte>, Boolean, Int32)
- 來源:
- Guid.cs
- 來源:
- Guid.cs
- 來源:
- Guid.cs
- 來源:
- Guid.cs
嘗試將目前的 GUID 實例寫入一個位元組區間,並使用指定的字節序。
public:
bool TryWriteBytes(Span<System::Byte> destination, bool bigEndian, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryWriteBytes(Span<byte> destination, bool bigEndian, out int bytesWritten);
member this.TryWriteBytes : Span<byte> * bool * int -> bool
Public Function TryWriteBytes (destination As Span(Of Byte), bigEndian As Boolean, ByRef bytesWritten As Integer) As Boolean
參數
- bigEndian
- Boolean
true 以大端序位元組順序寫入位元組; false 以小端位元組順序寫入。
- bytesWritten
- Int32
當此方法回傳時,包含寫入 destination的位元組數。
傳回
true 若 GUID 成功寫入指定範圍; false 否則,