DateTimeFormatInfo.FirstDayOfWeek 屬性

定義

取得或設定週的第一天。Gets or sets the first day of the week.

public:
 property DayOfWeek FirstDayOfWeek { DayOfWeek get(); void set(DayOfWeek value); };
public DayOfWeek FirstDayOfWeek { get; set; }
member this.FirstDayOfWeek : DayOfWeek with get, set
Public Property FirstDayOfWeek As DayOfWeek

屬性值

表示一週第一天的列舉值。An enumeration value that represents the first day of the week. InvariantInfo 的預設值為 SundayThe default for InvariantInfo is Sunday.

例外狀況

屬性正被設定為不是有效 DayOfWeek 值的值。The property is being set to a value that is not a valid DayOfWeek value.

正在設定屬性,而且 DateTimeFormatInfo 物件為唯讀。The property is being set and the DateTimeFormatInfo object is read-only.

備註

如果Calendar屬性的值變更,這個屬性會受到影響。This property is affected if the value of the Calendar property changes.

適用於

另請參閱