DateTimePatternGenerator.GetDateTimeFormat(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
Getter 對應 setDateTimeFormat。
[Android.Runtime.Register("getDateTimeFormat", "(I)Ljava/lang/String;", "GetGetDateTimeFormat_IHandler", ApiSince=35)]
public virtual string? GetDateTimeFormat(int style);
[<Android.Runtime.Register("getDateTimeFormat", "(I)Ljava/lang/String;", "GetGetDateTimeFormat_IHandler", ApiSince=35)>]
abstract member GetDateTimeFormat : int -> string
override this.GetDateTimeFormat : int -> string
參數
- style
- Int32
DateFormat.FULL..日期格式。SHORT。 若超出範圍,則會拋出例外。
傳回
目前指定風格的 dateTimeFormat 。
- 屬性
備註
Getter 對應 setDateTimeFormat。
Java 文件 android.icu.text.DateTimePatternGenerator.getDateTimeFormat(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。