BindConverter.TryConvertToNullableDateOnly 方法

定义

重载

TryConvertToNullableDateOnly(Object, CultureInfo, String, Nullable<DateOnly>)

尝试将值转换为可为空的 DateOnly

TryConvertToNullableDateOnly(Object, CultureInfo, Nullable<DateOnly>)

尝试将值转换为可为空的 DateOnly

TryConvertToNullableDateOnly(Object, CultureInfo, String, Nullable<DateOnly>)

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

尝试将值转换为可为空的 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

参数

obj
Object

要转换的对象。

culture
CultureInfo

CultureInfo要用于转换的 。

format
String

在转换中使用的格式字符串。

value
Nullable<DateOnly>

转换后的值。

返回

true 如果转换成功,则为 ;否则为 false

适用于

TryConvertToNullableDateOnly(Object, CultureInfo, Nullable<DateOnly>)

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

尝试将值转换为可为空的 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

参数

obj
Object

要转换的对象。

culture
CultureInfo

CultureInfo要用于转换的 。

value
Nullable<DateOnly>

转换后的值。

返回

true 如果转换成功,则为 ;否则为 false

适用于