Boolean.IParsable<Boolean>.TryParse Metodo

Definizione

Tenta di analizzare una stringa in un valore.

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

Parametri

s
String

Stringa da analizzare.

provider
IFormatProvider

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

result
Boolean

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