String.IParsable<String>.TryParse Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Próbuje przeanalizować ciąg w wartości.
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
Parametry
- s
- String
Ciąg do analizy.
- provider
- IFormatProvider
Obiekt, który udostępnia informacje o formatowaniu specyficznym dla kultury.s
- result
- String
Gdy ta metoda zwraca wartość , zawiera wynik pomyślnego analizowania s, lub niezdefiniowanej wartości w przypadku błędu.
Zwraca
true jeśli s została pomyślnie przeanalizowana; w przeciwnym razie false.