Compartir a través de


BindConverter.TryConvertToFloat(Object, CultureInfo, Single) Método

Definición

Intenta convertir un valor en .Single

public:
 static bool TryConvertToFloat(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, [Runtime::InteropServices::Out] float % value);
public static bool TryConvertToFloat (object obj, System.Globalization.CultureInfo culture, out float value);
public static bool TryConvertToFloat (object? obj, System.Globalization.CultureInfo? culture, out float value);
static member TryConvertToFloat : obj * System.Globalization.CultureInfo * single -> bool
Public Shared Function TryConvertToFloat (obj As Object, culture As CultureInfo, ByRef value As Single) As Boolean

Parámetros

obj
Object

Objeto que se va a convertir.

culture
CultureInfo

que CultureInfo se va a usar para la conversión.

value
Single

El valor convertido.

Devoluciones

true es si la conversión es correcta; de lo contrario false, es .

Se aplica a