String.IParsable<String>.TryParse Método

Definición

Intenta analizar una cadena en un 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

Cadena que se va a analizar.

provider
IFormatProvider

Objeto que proporciona información de formato específica de la referencia cultural sobre s.

result
String

Cuando este método devuelve , contiene el resultado de analizar scorrectamente o un valor indefinido en caso de error.

Devoluciones

true es si s se ha analizado correctamente; en caso contrario, falsees .

Se aplica a