Exceptions.Add Method
Project Developer Reference |
Adds a Exception object to an Exceptions collection.
Syntax
expression.Add(Type, Start, Finish, Occurrences, Name, Period, DaysOfWeek, MonthPosition, MonthItem, Month, MonthDay)
expression A variable that represents an Exceptions object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Type | Required | Long | Exception type. Can be one of the PjExceptionType constants. |
Start | Required | Variant | Start date of the exception. |
Finish | Optional | Variant | Finish date of the exception. |
Occurrences | Optional | Long | Number of occurrences. |
Name | Optional | String | Name of the Exception object |
Period | Optional | Long | Number for exception recurrence. |
DaysOfWeek | Optional | Long | The days on which the exception occurs. Can be a combination of PjWeekday constants. |
MonthPosition | Optional | Long | Value for the Monthly type exceptions. Can be one of the PjExceptionPosition contants. |
MonthItem | Optional | Long | Value for the Monthly type exceptions. Can be one of the following PjExceptionItem constants: pjSunday, pjMonday, pjTuesday, pjWednesday, pjThursday, pjFriday, and pjSaturday. |
Month | Optional | Long | Month for Yearly type exceptions. Can be one of the pjMonth constants. |
MonthDay | Optional | Long | Day of month for ByMonthDay type exceptions. |
Return Value
Exception
See Also