DateTimeFormatInfo.CalendarWeekRule Свойство

Определение

Gets or sets a value that specifies which rule is used to determine the first calendar week of the year.Gets or sets a value that specifies which rule is used to determine the first calendar week of the year.

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

Значение свойства

Значение, определяющее первую календарную неделю года.A value that determines the first calendar week of the year. Значение по умолчанию для свойства InvariantInfo равно FirstDay.The default for InvariantInfo is FirstDay.

Исключения

The property is being set to a value that is not a valid CalendarWeekRule value.The property is being set to a value that is not a valid CalendarWeekRule value.

In a set operation, the current DateTimeFormatInfo object is read-only.In a set operation, the current DateTimeFormatInfo object is read-only.

Комментарии

Это свойство изменяется при изменении значения свойства Calendar.This property is affected if the value of the Calendar property changes.

Применяется к

Дополнительно