BindConverter.TryConvertToNullableDateOnly 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
TryConvertToNullableDateOnly(Object, CultureInfo, String, Nullable<DateOnly>) |
Attempts to convert a value to a nullable DateOnly. |
TryConvertToNullableDateOnly(Object, CultureInfo, Nullable<DateOnly>) |
Attempts to convert a value to a nullable DateOnly. |
TryConvertToNullableDateOnly(Object, CultureInfo, String, Nullable<DateOnly>)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Attempts to convert a value to a nullable DateOnly.
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
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
.
Applies to
TryConvertToNullableDateOnly(Object, CultureInfo, Nullable<DateOnly>)
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
- Source:
- BindConverter.cs
Attempts to convert a value to a nullable DateOnly.
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
Parameters
- obj
- Object
The object to convert.
- culture
- CultureInfo
The CultureInfo to use for conversion.
Returns
true
if conversion is successful, otherwise false
.