String.IParsable<String>.TryParse Metodo

Definizione

Tenta di analizzare una stringa in un valore.

 static bool System.IParsable<System.String>.TryParse(System::String ^ s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] System::String ^ % result) = IParsable<System::String ^>::TryParse;
static bool IParsable<string>.TryParse(string s, IFormatProvider provider, out string result);
static member System.IParsable<System.String>.TryParse : string * IFormatProvider * string -> bool
 Shared Function TryParse (s As String, provider As IFormatProvider, ByRef result As String) As Boolean Implements IParsable(Of String).TryParse

Parametri

s
String

Stringa da analizzare.

provider
IFormatProvider

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

result
String

Quando termina, questo metodo contiene il risultato dell'analisi scorretta di 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