共用方式為


BindConverter.TryConvertToNullableTimeOnly 方法

定義

多載

TryConvertToNullableTimeOnly(Object, CultureInfo, Nullable<TimeOnly>)

嘗試將值轉換成可為 TimeOnly Null 的 。

TryConvertToNullableTimeOnly(Object, CultureInfo, String, Nullable<TimeOnly>)

嘗試將值轉換成可為 TimeOnly Null 的 。

TryConvertToNullableTimeOnly(Object, CultureInfo, Nullable<TimeOnly>)

來源:
BindConverter.cs
來源:
BindConverter.cs
來源:
BindConverter.cs
來源:
BindConverter.cs

嘗試將值轉換成可為 TimeOnly Null 的 。

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

參數

obj
Object

要轉換的物件。

culture
CultureInfo

CultureInfo要用於轉換的 。

value
Nullable<TimeOnly>

轉換的值。

傳回

true 如果轉換成功,則為 ,否則 false 為 。

適用於

TryConvertToNullableTimeOnly(Object, CultureInfo, String, Nullable<TimeOnly>)

來源:
BindConverter.cs
來源:
BindConverter.cs
來源:
BindConverter.cs
來源:
BindConverter.cs

嘗試將值轉換成可為 TimeOnly Null 的 。

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

參數

obj
Object

要轉換的物件。

culture
CultureInfo

CultureInfo要用於轉換的 。

format
String

要用於轉換的格式字串。

value
Nullable<TimeOnly>

轉換的值。

傳回

true 如果轉換成功,則為 ,否則 false 為 。

適用於