Bagikan melalui


BindConverter.TryConvertToDateTime Metode

Definisi

Overload

TryConvertToDateTime(Object, CultureInfo, DateTime)

Mencoba mengonversi nilai menjadi DateTime.

TryConvertToDateTime(Object, CultureInfo, String, DateTime)

Mencoba mengonversi nilai menjadi DateTime.

TryConvertToDateTime(Object, CultureInfo, DateTime)

Sumber:
BindConverter.cs
Sumber:
BindConverter.cs
Sumber:
BindConverter.cs
Sumber:
BindConverter.cs
Sumber:
BindConverter.cs
Sumber:
BindConverter.cs
Sumber:
BindConverter.cs

Mencoba mengonversi nilai menjadi DateTime.

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

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
DateTime

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk

TryConvertToDateTime(Object, CultureInfo, String, DateTime)

Sumber:
BindConverter.cs
Sumber:
BindConverter.cs
Sumber:
BindConverter.cs
Sumber:
BindConverter.cs
Sumber:
BindConverter.cs
Sumber:
BindConverter.cs
Sumber:
BindConverter.cs

Mencoba mengonversi nilai menjadi DateTime.

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

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

format
String

String format yang digunakan dalam konversi.

value
DateTime

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk