Guid.TryWriteBytes 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| TryWriteBytes(Span<Byte>) |
尝试将当前 GUID 实例写入字节范围。 |
| TryWriteBytes(Span<Byte>, Boolean, Int32) |
尝试使用指定的字节数将当前 GUID 实例写入字节范围。 |
TryWriteBytes(Span<Byte>)
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- 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)
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- 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 以 big-endian 字节顺序写入字节; false 以小字节字节顺序编写它们。
- bytesWritten
- Int32
此方法返回时,包含写入 destination到的字节数。
返回
true 如果 GUID 已成功写入指定的范围,则为 false 否则。