IPAddress.ISpanParsable<IPAddress>.TryParse Metodo

Definizione

Tenta di analizzare un intervallo di caratteri in un valore.

 static bool System.ISpanParsable<System.Net.IPAddress>.TryParse(ReadOnlySpan<char> s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] System::Net::IPAddress ^ % result) = ISpanParsable<System::Net::IPAddress ^>::TryParse;
static bool ISpanParsable<IPAddress>.TryParse (ReadOnlySpan<char> s, IFormatProvider provider, out System.Net.IPAddress result);
static member System.ISpanParsable<System.Net.IPAddress>.TryParse : ReadOnlySpan<char> * IFormatProvider * IPAddress -> bool
 Shared Function TryParse (s As ReadOnlySpan(Of Char), provider As IFormatProvider, ByRef result As IPAddress) As Boolean Implements ISpanParsable(Of IPAddress).TryParse

Parametri

s
ReadOnlySpan<Char>

Intervallo di caratteri da analizzare.

provider
IFormatProvider

Oggetto che fornisce informazioni di formattazione specifiche delle impostazioni cultura relative a s.

result
IPAddress

Quando termina, questo metodo contiene il risultato dell'analisi s corretta o di un valore non definito in caso di errore.

Restituisce

true se s è stato analizzato correttamente; in caso contrario, false.

Si applica a