Share via


DateTimeFormatter.IncludeYear 屬性

定義

取得範本中的 YearFormat

public:
 property YearFormat IncludeYear { YearFormat get(); };
YearFormat IncludeYear();
public YearFormat IncludeYear { get; }
var yearFormat = dateTimeFormatter.includeYear;
Public ReadOnly Property IncludeYear As YearFormat

屬性值

指定是否包含年份。 如果是,此格式會指定範本中年份的格式。

適用於