BindConverter.TryConvertToDateOnly 方法

定义

重载

TryConvertToDateOnly(Object, CultureInfo, DateOnly)

尝试将值转换为 DateOnly

TryConvertToDateOnly(Object, CultureInfo, String, DateOnly)

尝试将值转换为 DateOnly

TryConvertToDateOnly(Object, CultureInfo, DateOnly)

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

尝试将值转换为 DateOnly

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

参数

obj
Object

要转换的对象。

culture
CultureInfo

CultureInfo要用于转换的 。

value
DateOnly

转换后的值。

返回

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

适用于

TryConvertToDateOnly(Object, CultureInfo, String, DateOnly)

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

尝试将值转换为 DateOnly

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

参数

obj
Object

要转换的对象。

culture
CultureInfo

CultureInfo要用于转换的 。

format
String

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

value
DateOnly

转换后的值。

返回

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

适用于