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
public CalendarWeekRule CalendarWeekRule {get; set;}
public: __property CalendarWeekRule get_CalendarWeekRule();
public: __property void set_CalendarWeekRule(CalendarWeekRule);
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.


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


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


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

© 2014 Microsoft