Dela via


BindConverter.TryConvertToNullableTimeOnly Method

Definition

Overloads

TryConvertToNullableTimeOnly(Object, CultureInfo, Nullable<TimeOnly>)

Attempts to convert a value to a nullable TimeOnly.

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

Attempts to convert a value to a nullable TimeOnly.

TryConvertToNullableTimeOnly(Object, CultureInfo, Nullable<TimeOnly>)

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

Attempts to convert a value to a nullable TimeOnly.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Nullable<TimeOnly>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to

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

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

Attempts to convert a value to a nullable TimeOnly.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

format
String

The format string to use in conversion.

value
Nullable<TimeOnly>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to