BindConverter.TryConvertToString(Object, CultureInfo, String) 方法

定义

尝试将值转换为 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

参数

obj
Object

要转换的对象。

culture
CultureInfo

CultureInfo要用于转换的 。

value
String

转换后的值。

返回

true 如果转换成功,则为 ;否则为 false

适用于