Inserts a special date.
| C# | SftDateSpecialDate refSpecialDateObj = object.Insert(int Index, DateTime Date, SftDateRecurrenceConstants Recurrence = recurrenceSftDateNone); |
| VB.NET | refSpecialDateObj = object.Insert(ByVal Index As Integer, ByVal Date As Date, [ ByVal Recurrence As SftDateRecurrenceConstants = recurrenceSftDateNone ]) As SftDateSpecialDate |
| C++ | ISftDateSpecialDate* refSpecialDateObj = object->Insert(long Index, DATE Date, enum SftDateRecurrenceConstants Recurrence = recurrenceSftDateNone); |
| C | HRESULT object->raw_Insert(long Index, DATE Date, enum SftDateRecurrenceConstants Recurrence, ISftDateSpecialDate** refSpecialDateObj); |
object
Index
The zero-based position of the new special date, 0 through Count.
Date
The date (the time is ignored).
Recurrence
Defines whether the special date recurs weekly, monthly or annually. The default is recurrenceSftDateNone.
| Name | Value | Description |
|---|---|---|
| recurrenceSftDateNone | 0 | The date only |
| recurrenceSftDateWeekly | 1 | The same day of every week |
| recurrenceSftDateMonthly | 2 | The same day of every month |
| recurrenceSftDateAnnually | 3 | The same day of every year |
refSpecialDateObj
Returns the new special date.
The Insert method inserts a special date at the given position. Special dates at that position and after it move up by one. An index outside 0 through Count causes an error. p When several special dates apply to a day, the first one in the collection is used, so inserting a special date in front of others gives it priority.
See Also SftDateSpecialDates Object | Object Hierarchy | Special Dates