BindConverter.TryConvertToNullableTimeOnly Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
Returns
true
if conversion is successful, otherwise false
.