Compartir a través de


BindConverter.TryConvertToNullableDateOnly Método

Definición

Sobrecargas

TryConvertToNullableDateOnly(Object, CultureInfo, String, Nullable<DateOnly>)

Intenta convertir un valor en un que acepta DateOnlyvalores NULL.

TryConvertToNullableDateOnly(Object, CultureInfo, Nullable<DateOnly>)

Intenta convertir un valor en un que acepta DateOnlyvalores NULL.

TryConvertToNullableDateOnly(Object, CultureInfo, String, Nullable<DateOnly>)

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

Intenta convertir un valor en un que acepta DateOnlyvalores NULL.

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

El valor convertido.

Devoluciones

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

Se aplica a

TryConvertToNullableDateOnly(Object, CultureInfo, Nullable<DateOnly>)

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

Intenta convertir un valor en un que acepta DateOnlyvalores NULL.

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

El valor convertido.

Devoluciones

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

Se aplica a