Compartir a través de


BindConverter.TryConvertToNullableTimeOnly Método

Definición

Sobrecargas

TryConvertToNullableTimeOnly(Object, CultureInfo, Nullable<TimeOnly>)

Intenta convertir un valor en un que acepta TimeOnlyvalores NULL.

TryConvertToNullableTimeOnly(Object, CultureInfo, String, Nullable<TimeOnly>)

Intenta convertir un valor en un que acepta TimeOnlyvalores NULL.

TryConvertToNullableTimeOnly(Object, CultureInfo, Nullable<TimeOnly>)

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

Intenta convertir un valor en un que acepta TimeOnlyvalores NULL.

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

El valor convertido.

Devoluciones

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

Se aplica a

TryConvertToNullableTimeOnly(Object, CultureInfo, String, Nullable<TimeOnly>)

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

Intenta convertir un valor en un que acepta TimeOnlyvalores NULL.

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

El valor convertido.

Devoluciones

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

Se aplica a