Compartir a través de


BindConverter.TryConvertToDateOnly Método

Definición

Sobrecargas

TryConvertToDateOnly(Object, CultureInfo, DateOnly)

Intenta convertir un valor en .DateOnly

TryConvertToDateOnly(Object, CultureInfo, String, DateOnly)

Intenta convertir un valor en .DateOnly

TryConvertToDateOnly(Object, CultureInfo, DateOnly)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Intenta convertir un valor en .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

Parámetros

obj
Object

Objeto que se va a convertir.

culture
CultureInfo

que CultureInfo se va a usar para la conversión.

value
DateOnly

El valor convertido.

Devoluciones

true es si la conversión es correcta; de lo contrario false, es .

Se aplica a

TryConvertToDateOnly(Object, CultureInfo, String, DateOnly)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Intenta convertir un valor en .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

Parámetros

obj
Object

Objeto que se va a convertir.

culture
CultureInfo

que CultureInfo se va a usar para la conversión.

format
String

Cadena de formato que se va a usar en la conversión.

value
DateOnly

El valor convertido.

Devoluciones

true es si la conversión es correcta; de lo contrario false, es .

Se aplica a