BindConverter.TryConvertToNullableTimeOnly 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
TryConvertToNullableTimeOnly(Object, CultureInfo, Nullable<TimeOnly>) |
嘗試將值轉換成可為 TimeOnly Null 的 。 |
TryConvertToNullableTimeOnly(Object, CultureInfo, String, Nullable<TimeOnly>) |
嘗試將值轉換成可為 TimeOnly Null 的 。 |
TryConvertToNullableTimeOnly(Object, CultureInfo, Nullable<TimeOnly>)
嘗試將值轉換成可為 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要用於轉換的 。
傳回
true
如果轉換成功,則為 ,否則 false
為 。
適用於
TryConvertToNullableTimeOnly(Object, CultureInfo, String, Nullable<TimeOnly>)
嘗試將值轉換成可為 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
要用於轉換的格式字串。
傳回
true
如果轉換成功,則為 ,否則 false
為 。