Compartir a través de


BindConverter.TryConvertToDecimal(Object, CultureInfo, Decimal) Método

Definición

Intenta convertir un valor en .Decimal

public:
 static bool TryConvertToDecimal(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, [Runtime::InteropServices::Out] System::Decimal % value);
public static bool TryConvertToDecimal (object obj, System.Globalization.CultureInfo culture, out decimal value);
public static bool TryConvertToDecimal (object? obj, System.Globalization.CultureInfo? culture, out decimal value);
static member TryConvertToDecimal : obj * System.Globalization.CultureInfo * decimal -> bool
Public Shared Function TryConvertToDecimal (obj As Object, culture As CultureInfo, ByRef value As Decimal) 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
Decimal

El valor convertido.

Devoluciones

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

Se aplica a