Share via


BindConverter.TryConvertToTimeOnly Method

Definition

Overloads

TryConvertToTimeOnly(Object, CultureInfo, TimeOnly)

Attempts to convert a value to a TimeOnly.

TryConvertToTimeOnly(Object, CultureInfo, String, TimeOnly)

Attempts to convert a value to a TimeOnly.

TryConvertToTimeOnly(Object, CultureInfo, TimeOnly)

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

Attempts to convert a value to a TimeOnly.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
TimeOnly

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to

TryConvertToTimeOnly(Object, CultureInfo, String, TimeOnly)

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

Attempts to convert a value to a TimeOnly.

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

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to