Compartir a través de


BindConverter.TryConvertToString(Object, CultureInfo, String) Método

Definición

Intenta convertir un valor en .String

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

El valor convertido.

Devoluciones

true es si la conversión se realiza correctamente; de lo contrario false, es .

Se aplica a