Bagikan melalui


BindConverter.TryConvertToNullableDateTimeOffset Metode

Definisi

Overload

TryConvertToNullableDateTimeOffset(Object, CultureInfo, Nullable<DateTimeOffset>)

Mencoba untuk mengonversi nilai menjadi nullable DateTimeOffset.

TryConvertToNullableDateTimeOffset(Object, CultureInfo, String, Nullable<DateTimeOffset>)

Mencoba untuk mengonversi nilai menjadi nullable DateTimeOffset.

TryConvertToNullableDateTimeOffset(Object, CultureInfo, Nullable<DateTimeOffset>)

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

Mencoba untuk mengonversi nilai menjadi nullable DateTimeOffset.

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

Parameter

obj
Object

Objek yang akan dikonversi.

culture
CultureInfo

yang CultureInfo digunakan untuk konversi.

value
Nullable<DateTimeOffset>

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk

TryConvertToNullableDateTimeOffset(Object, CultureInfo, String, Nullable<DateTimeOffset>)

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

Mencoba untuk mengonversi nilai menjadi nullable DateTimeOffset.

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

Nilai yang dikonversi.

Mengembalikan

true jika konversi berhasil, jika tidak false.

Berlaku untuk