Share via


BindConverter.TryConvertToString(Object, CultureInfo, String) Method

Definition

Attempts to convert a value to a 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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
String

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to