IPAddress.TryFormat Method
Definition
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.
Overloads
TryFormat(Span<Char>, Int32) |
Tries to format the current IP address into the provided span. |
TryFormat(Span<Byte>, Int32) |
Tries to format the current IP address into the provided span. |
TryFormat(Span<Char>, Int32)
- Source:
- IPAddress.cs
- Source:
- IPAddress.cs
- Source:
- IPAddress.cs
Tries to format the current IP address into the provided span.
public:
bool TryFormat(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryFormat (Span<char> destination, out int charsWritten);
member this.TryFormat : Span<char> * int -> bool
Public Function TryFormat (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean
Parameters
- charsWritten
- Int32
When this method returns, the number of characters written into the span.
Returns
true
if the formatting was successful; otherwise, false
.
Applies to
TryFormat(Span<Byte>, Int32)
- Source:
- IPAddress.cs
- Source:
- IPAddress.cs
Tries to format the current IP address into the provided span.
public:
bool TryFormat(Span<System::Byte> utf8Destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryFormat (Span<byte> utf8Destination, out int bytesWritten);
member this.TryFormat : Span<byte> * int -> bool
Public Function TryFormat (utf8Destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
Parameters
- bytesWritten
- Int32
When this method returns, contains the number of bytes written into the utf8Destination
.
Returns
true
if the formatting was successful; otherwise, false
.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για