Bagikan melalui


BindConverter.TryConvertToNullableDateTime Metode

Definisi

Overload

TryConvertToNullableDateTime(Object, CultureInfo, Nullable<DateTime>)

Mencoba mengonversi nilai menjadi nullable DateTime.

TryConvertToNullableDateTime(Object, CultureInfo, String, Nullable<DateTime>)

Mencoba mengonversi nilai menjadi nullable DateTime.

TryConvertToNullableDateTime(Object, CultureInfo, Nullable<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 nullable DateTime.

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

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
Nullable<DateTime>

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk

TryConvertToNullableDateTime(Object, CultureInfo, String, Nullable<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 nullable DateTime.

public:
 static bool TryConvertToNullableDateTime(System::Object ^ obj, System::Globalization::CultureInfo ^ culture, System::String ^ format, [Runtime::InteropServices::Out] Nullable<DateTime> % value);
public static bool TryConvertToNullableDateTime (object obj, System.Globalization.CultureInfo culture, string format, out DateTime? value);
public static bool TryConvertToNullableDateTime (object? obj, System.Globalization.CultureInfo? culture, string format, out DateTime? value);
static member TryConvertToNullableDateTime : obj * System.Globalization.CultureInfo * string * Nullable -> bool
Public Shared Function TryConvertToNullableDateTime (obj As Object, culture As CultureInfo, format As String, ByRef value As Nullable(Of 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
Nullable<DateTime>

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk