DateTimeFormatInfo.CalendarWeekRule DateTimeFormatInfo.CalendarWeekRule DateTimeFormatInfo.CalendarWeekRule DateTimeFormatInfo.CalendarWeekRule Property

定義

年の最初の週を判断するために使用する規則を指定する値を取得または設定します。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.

例外

プロパティが有効な CalendarWeekRule 値ではない値に設定されています。The property is being set to a value that is not a valid CalendarWeekRule value.

set 操作において、現在の DateTimeFormatInfo オブジェクトが読み取り専用です。In a set operation, the current DateTimeFormatInfo object is read-only.

注釈

このプロパティは影響を受けた場合の値、Calendarプロパティの変更。This property is affected if the value of the Calendar property changes.

適用対象

こちらもご覧ください