This documentation is archived and is not being maintained.

DateTimeFormatInfo.CalendarWeekRule Property

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

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)

public CalendarWeekRule CalendarWeekRule { get; set; }
/** @property */
public CalendarWeekRule get_CalendarWeekRule ()

/** @property */
public void set_CalendarWeekRule (CalendarWeekRule value)

public function get CalendarWeekRule () : CalendarWeekRule

public function set CalendarWeekRule (value : CalendarWeekRule)

Not applicable.

Property Value

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

Exception typeCondition

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0
Show: