String.IParsable<String>.TryParse Método

Definição

Tenta analisar uma cadeia num valor.

 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

Parâmetros

s
String

A sequência a analisar.

provider
IFormatProvider

Um objeto que fornece informação de formatação específica da cultura sobre s.

result
String

Quando este método retorna, contém o resultado de uma sanálise bem-sucedida , ou um valor indefinido em caso de falha.

Devoluções

true se s foi analisado com sucesso; caso contrário, false.

Aplica-se a