Export (0) Print
Expand All

DateTimeFormatInfo.CalendarWeekRule Property

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

[Visual Basic]
Public Property CalendarWeekRule As CalendarWeekRule
[C#]
public CalendarWeekRule CalendarWeekRule {get; set;}
[C++]
public: __property CalendarWeekRule get_CalendarWeekRule();
public: __property void set_CalendarWeekRule(CalendarWeekRule);
[JScript]
public function get CalendarWeekRule() : CalendarWeekRule;
public function set CalendarWeekRule(CalendarWeekRule);

Property Value

A CalendarWeekRule value that determines the first calendar week of the year. The default for InvariantInfo is FirstDay.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException The property is being set to a value that is not a valid CalendarWeekRule value.

Remarks

This property is affected if the value of the Calendar property changes.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DateTimeFormatInfo Class | DateTimeFormatInfo Members | System.Globalization Namespace | CalendarWeekRule

Show:
© 2014 Microsoft