Bagikan melalui


BindConverter.TryConvertToInt(Object, CultureInfo, Int32) Metode

Definisi

Mencoba mengonversi nilai menjadi Int32.

public:
 static bool TryConvertToInt(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, [Runtime::InteropServices::Out] int % value);
public static bool TryConvertToInt (object obj, System.Globalization.CultureInfo culture, out int value);
public static bool TryConvertToInt (object? obj, System.Globalization.CultureInfo? culture, out int value);
static member TryConvertToInt : obj * System.Globalization.CultureInfo * int -> bool
Public Shared Function TryConvertToInt (obj As Object, culture As CultureInfo, ByRef value As Integer) As Boolean

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
Int32

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk