Sets a day of the week on which the role is active or inactive.


void SetApplicableDay(int dayOfWeek, bool isApplicable)


Specify the following parameters when using this method.

Parameter Description


The day of the week on which you want the role to be active or inactive, where 0 is Sunday and 6 is Saturday.


Set true to make the role active on the specified day, or false to make the role inactive on that day.


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.