FirstDayOfWeek 枚举

定义

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

public enum class FirstDayOfWeek
public enum FirstDayOfWeek
type FirstDayOfWeek = 
Public Enum FirstDayOfWeek
继承
FirstDayOfWeek

字段

Friday 6

Friday,该成员等效于 Visual Basic 常数 vbFridayFriday This member is equivalent to the Visual Basic constant vbFriday.

Monday 2

Monday,该成员等效于 Visual Basic 常数 vbMondayMonday This member is equivalent to the Visual Basic constant vbMonday.

Saturday 7

Saturday,该成员等效于 Visual Basic 常数 vbSaturdaySaturday This member is equivalent to the Visual Basic constant vbSaturday.

Sunday 1

Sunday(默认值),该成员等效于 Visual Basic 常数 vbSundaySunday (default) This member is equivalent to the Visual Basic constant vbSunday.

System 0

系统设置中指定的一周的第一天,该成员等效于 Visual Basic 常数 vbUseSystemDayOfWeekThe first day of the week as specified in your system settings This member is equivalent to the Visual Basic constant vbUseSystemDayOfWeek.

Thursday 5

Thursday,该成员等效于 Visual Basic 常数 vbThursdayThursday This member is equivalent to the Visual Basic constant vbThursday.

Tuesday 3

Tuesday,该成员等效于 Visual Basic 常数 vbTuesdayTuesday This member is equivalent to the Visual Basic constant vbTuesday.

Wednesday 4

Wednesday,该成员等效于 Visual Basic 常数 vbWednesdayWednesday This member is equivalent to the Visual Basic constant vbWednesday.

注解

调用与日期相关的函数时, 可以在代码中使用以下枚举成员来代替实际值。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. 枚举指定DayOfWeek参数的有效值以及函数的可能的返回值。 FirstDayOfWeekThe FirstDayOfWeek enumeration specifies the valid values for the DayOfWeek arguments, as well as the possible return values from the functions.

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

与日期相关的函数还FirstDayOfWeek返回值 ( System除外)。Date-related functions also return FirstDayOfWeek values (except System).

适用于

另请参阅