ByDayCollection.Add

Add(ByDay)

Adds a ByDay to the collection.

public int Add(ByDay byDay)
ParameterTypeDescription
byDayByDayThe item to add to the collection.

Return Value

The zero-based index of the newly added item.

See Also


Add(DayOfWeek)

Creates and adds a ByDay that represents all occurrences of the day of the week to the collection.

public int Add(DayOfWeek dayOfWeek)
ParameterTypeDescription
dayOfWeekDayOfWeekA day of the week.

Return Value

The zero-based index of the newly added item.

See Also


Add(int, DayOfWeek)

Creates and adds a ByDay to the collection.

public int Add(int nthOccurrence, DayOfWeek dayOfWeek)
ParameterTypeDescription
nthOccurrenceInt32The nth occurrence of the day of the week.
dayOfWeekDayOfWeekA day of the week.

Return Value

The zero-based index of the newly added item.

See Also