共用方式為


BindConverter.TryConvertToTimeOnly 方法

定義

多載

TryConvertToTimeOnly(Object, CultureInfo, TimeOnly)

嘗試將值轉換為 TimeOnly

TryConvertToTimeOnly(Object, CultureInfo, String, TimeOnly)

嘗試將值轉換為 TimeOnly

TryConvertToTimeOnly(Object, CultureInfo, TimeOnly)

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

嘗試將值轉換為 TimeOnly

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

參數

obj
Object

要轉換的物件。

culture
CultureInfo

CultureInfo要用於轉換的 。

value
TimeOnly

轉換的值。

傳回

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

適用於

TryConvertToTimeOnly(Object, CultureInfo, String, TimeOnly)

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

嘗試將值轉換為 TimeOnly

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

參數

obj
Object

要轉換的物件。

culture
CultureInfo

CultureInfo要用於轉換的 。

format
String

要用於轉換的格式字串。

value
TimeOnly

轉換的值。

傳回

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

適用於