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.

适用于

另请参阅