Condividi tramite


BindConverter.TryConvertToDateOnly Metodo

Definizione

Overload

TryConvertToDateOnly(Object, CultureInfo, DateOnly)

Tenta di convertire un valore in un oggetto DateOnly.

TryConvertToDateOnly(Object, CultureInfo, String, DateOnly)

Tenta di convertire un valore in un oggetto DateOnly.

TryConvertToDateOnly(Object, CultureInfo, DateOnly)

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

Tenta di convertire un valore in un oggetto DateOnly.

public static bool TryConvertToDateOnly (object? obj, System.Globalization.CultureInfo? culture, out DateOnly value);
static member TryConvertToDateOnly : obj * System.Globalization.CultureInfo * DateOnly -> bool
Public Shared Function TryConvertToDateOnly (obj As Object, culture As CultureInfo, ByRef value As DateOnly) As Boolean

Parametri

obj
Object

Oggetto da convertire.

culture
CultureInfo

Oggetto CultureInfo da utilizzare per la conversione.

value
DateOnly

Valore convertito.

Restituisce

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

Si applica a

TryConvertToDateOnly(Object, CultureInfo, String, DateOnly)

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

Tenta di convertire un valore in un oggetto DateOnly.

public static bool TryConvertToDateOnly (object? obj, System.Globalization.CultureInfo? culture, string format, out DateOnly value);
static member TryConvertToDateOnly : obj * System.Globalization.CultureInfo * string * DateOnly -> bool
Public Shared Function TryConvertToDateOnly (obj As Object, culture As CultureInfo, format As String, ByRef value As DateOnly) 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
DateOnly

Valore convertito.

Restituisce

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

Si applica a