Condividi tramite


BindConverter.TryConvertToNullableDateTime Metodo

Definizione

Overload

TryConvertToNullableDateTime(Object, CultureInfo, Nullable<DateTime>)

Tenta di convertire un valore in un valore nullable DateTime.

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

Tenta di convertire un valore in un valore nullable DateTime.

TryConvertToNullableDateTime(Object, CultureInfo, Nullable<DateTime>)

Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs

Tenta di convertire un valore in un valore 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

Parametri

obj
Object

Oggetto da convertire.

culture
CultureInfo

Oggetto CultureInfo da utilizzare per la conversione.

value
Nullable<DateTime>

Valore convertito.

Restituisce

true se la conversione ha esito positivo; in caso contrario false, .

Si applica a

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

Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs
Origine:
BindConverter.cs

Tenta di convertire un valore in un valore 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

Parametri

obj
Object

Oggetto da convertire.

culture
CultureInfo

Oggetto CultureInfo da utilizzare per la conversione.

format
String

Stringa di formato da utilizzare nella conversione.

value
Nullable<DateTime>

Valore convertito.

Restituisce

true se la conversione ha esito positivo; in caso contrario false, .

Si applica a