IParsable<TSelf>.TryParse(String, IFormatProvider, TSelf) Metodo

Definizione

Tenta di analizzare una stringa in un valore.

public:
 static bool TryParse(System::String ^ s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] TSelf % result);
public static abstract bool TryParse(string? s, IFormatProvider? provider, out TSelf result);
static member TryParse : string * IFormatProvider * 'Self -> bool
Public Shared Function TryParse (s As String, provider As IFormatProvider, ByRef result As TSelf) As Boolean

Parametri

s
String

Stringa da analizzare.

provider
IFormatProvider

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

result
TSelf

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

Valori restituiti

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

Si applica a