BindConverter.TryConvertToTimeOnly 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
TryConvertToTimeOnly(Object, CultureInfo, TimeOnly) |
嘗試將值轉換為 TimeOnly 。 |
TryConvertToTimeOnly(Object, CultureInfo, String, TimeOnly) |
嘗試將值轉換為 TimeOnly 。 |
TryConvertToTimeOnly(Object, CultureInfo, TimeOnly)
嘗試將值轉換為 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)
嘗試將值轉換為 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
為 。