SetApplicableDay
Sets a day of the week on which the role is active or inactive.
Syntax
void SetApplicableDay(int dayOfWeek, bool isApplicable)
Parameter
Specify the following parameters when using this method.
Parameter | Description |
dayOfWeek |
The day of the week on which you want the role to be active or inactive, where 0 is Sunday and 6 is Saturday. |
isApplicable |
Set true to make the role active on the specified day, or false to make the role inactive on that day. |
Discussion
If you set the role active on Monday, it is active all day each Monday. To set a specific hour, see SetApplicableHour. To set up an entire schedule with one call, see ApplicableTimeHexString. To check whether the role is active at a given time, see IsApplicable.
Changes to the role assignments are not stored in Active Directory until you call the Commitmethod.