Boolean.IParsable<Boolean>.TryParse Metoda

Definice

Pokusí se analyzovat řetězec do hodnoty.

 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

Parametry

s
String

Řetězec, který se má analyzovat.

provider
IFormatProvider

Objekt, který poskytuje informace o sformátování specifické pro jazykovou verzi .

result
Boolean

Pokud tato metoda vrátí, obsahuje výsledek úspěšné analýzy s, nebo nedefinovanou hodnotu při selhání.

Návraty

true pokud s byl úspěšně analyzován; jinak , false.

Platí pro