Bagikan melalui


BindConverter.TryConvertToString(Object, CultureInfo, String) Metode

Definisi

Mencoba mengonversi nilai menjadi 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

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
String

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk