IPAddress.TryFormat(Span<Char>, Int32) Metodo
Definizione
Tenta di formattare l'indirizzo IP corrente nell'intervallo specificato.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
Parametri
Al termine di questo metodo, l'indirizzo IP come intervallo di caratteri.When this method returns, the IP address as a span of characters.
- charsWritten
- Int32
Al termine di questo metodo, il numero di caratteri scritti nell'intervallo.When this method returns, the number of characters written into the span.
Restituisce
true
se la formattazione è stata eseguita correttamente. In caso contrario, false
.true
if the formatting was successful; otherwise, false
.