FirstWeekOfYear FirstWeekOfYear FirstWeekOfYear FirstWeekOfYear Enum

定义

指示在调用与日期相关的函数时使用的每年的第一周。Indicates the first week of the year to use when calling date-related functions.

public enum class FirstWeekOfYear
public enum FirstWeekOfYear
type FirstWeekOfYear = 
Public Enum FirstWeekOfYear
继承
FirstWeekOfYearFirstWeekOfYearFirstWeekOfYearFirstWeekOfYear

字段

FirstFourDays FirstFourDays FirstFourDays FirstFourDays 2

第一个至少包含新年中的四天的周。The first week that has at least four days in the new year. 此成员等效于 Visual Basic 常量 vbFirstFourDaysThis member is equivalent to the Visual Basic constant vbFirstFourDays.

FirstFullWeek FirstFullWeek FirstFullWeek FirstFullWeek 3

一年中第一个完整的周。The first full week of the year. 此成员等效于 Visual Basic 常量 vbFirstFullWeekThis member is equivalent to the Visual Basic constant vbFirstFullWeek.

Jan1 Jan1 Jan1 Jan1 1

1 月 1 日所在的周(默认)。The week in which January 1 occurs (default). 此成员等效于 Visual Basic 常量 vbFirstJan1This member is equivalent to the Visual Basic constant vbFirstJan1.

System System System System 0

在系统设置中指定为一年的第一周的周。The week specified in your system settings as the first week of the year. 此成员等效于 Visual Basic 常量 vbUseSystemThis member is equivalent to the Visual Basic constant vbUseSystem.

注解

在调用与日期相关的函数时,您可以代替实际值在代码中使用以下枚举成员。When you call date-related functions, you can use the following enumeration members in your code in place of the actual values.

某些与日期相关的函数采用DayOfWeek自变量,WeekOfYear参数,或两者。Some date-related functions take a DayOfWeek argument, a WeekOfYear argument, or both. FirstWeekOfYear枚举指定的有效值为WeekOfYear参数,以及从函数可能的返回值。The FirstWeekOfYear enumeration specifies the valid values for the WeekOfYear arguments, as well as the possible return values from the functions.

WeekOfYear参数采用FirstWeekOfYear枚举成员。The WeekOfYear argument takes the FirstWeekOfYear enumeration members.

适用于

另请参阅