Share via


MonthFormat 列舉

定義

指定 DateTimeFormatter 物件中月份的預期格式。

public enum class MonthFormat
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class MonthFormat
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MonthFormat
var value = Windows.Globalization.DateTimeFormatting.MonthFormat.none
Public Enum MonthFormat
繼承
MonthFormat
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

欄位

Abbreviated 2

顯示月份的縮寫版本 (,例如 9 月) 的 「Sep」。

Default 1

以最自然的方式顯示月份。 視內容而定,其可能縮寫、完整或數值,例如所使用的語言或行事曆。

Full 3

以完整的 (顯示月份,例如「9 月」) 。

None 0

不要顯示月份。

Numeric 4

將月份顯示為數字 (,例如 9 月) 。

適用於