Guid.TryWriteBytes Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
TryWriteBytes(Span<Byte>) |
Tries to write the current GUID instance into a span of bytes. |
TryWriteBytes(Span<Byte>, Boolean, Int32) |
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- Guid.cs
Tries to write the current GUID instance into a span of bytes.
public:
bool TryWriteBytes(Span<System::Byte> destination);
C#
public bool TryWriteBytes(Span<byte> destination);
member this.TryWriteBytes : Span<byte> -> bool
Public Function TryWriteBytes (destination As Span(Of Byte)) As Boolean
Parameters
Returns
true
if the GUID is successfully written to the specified span; false
otherwise.
Applies to
.NET 10 i druge verzije
Proizvod | Verzije |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
- Source:
- Guid.cs
- Source:
- Guid.cs
public:
bool TryWriteBytes(Span<System::Byte> destination, bool bigEndian, [Runtime::InteropServices::Out] int % bytesWritten);
C#
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
Parameters
- bigEndian
- Boolean
- bytesWritten
- Int32
Returns
Applies to
.NET 10 i druge verzije
Proizvod | Verzije |
---|---|
.NET | 8, 9, 10 |
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: