ActiveDirectorySchedule.SetSchedule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a range of times to the schedule.
Overloads
SetSchedule(DayOfWeek, HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour) |
Adds a range of times for a single day to the schedule. |
SetSchedule(DayOfWeek[], HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour) |
Adds a range of times for multiple days to the schedule. |
SetSchedule(DayOfWeek, HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour)
- Source:
- ActiveDirectorySchedule.cs
- Source:
- ActiveDirectorySchedule.cs
Adds a range of times for a single day to the schedule.
public:
void SetSchedule(DayOfWeek day, System::DirectoryServices::ActiveDirectory::HourOfDay fromHour, System::DirectoryServices::ActiveDirectory::MinuteOfHour fromMinute, System::DirectoryServices::ActiveDirectory::HourOfDay toHour, System::DirectoryServices::ActiveDirectory::MinuteOfHour toMinute);
public void SetSchedule (DayOfWeek day, System.DirectoryServices.ActiveDirectory.HourOfDay fromHour, System.DirectoryServices.ActiveDirectory.MinuteOfHour fromMinute, System.DirectoryServices.ActiveDirectory.HourOfDay toHour, System.DirectoryServices.ActiveDirectory.MinuteOfHour toMinute);
member this.SetSchedule : DayOfWeek * System.DirectoryServices.ActiveDirectory.HourOfDay * System.DirectoryServices.ActiveDirectory.MinuteOfHour * System.DirectoryServices.ActiveDirectory.HourOfDay * System.DirectoryServices.ActiveDirectory.MinuteOfHour -> unit
Public Sub SetSchedule (day As DayOfWeek, fromHour As HourOfDay, fromMinute As MinuteOfHour, toHour As HourOfDay, toMinute As MinuteOfHour)
Parameters
- day
- DayOfWeek
One of the DayOfWeek members that specifies the day of the week that the source will be available for replication.
- fromHour
- HourOfDay
One of the HourOfDay members that specifies the first hour that the source will be available for replication.
- fromMinute
- MinuteOfHour
One of the MinuteOfHour members that specifies the first 15-minute interval that the source will be available for replication.
- toHour
- HourOfDay
One of the HourOfDay members that specifies the final hour that the source will be available for replication.
- toMinute
- MinuteOfHour
One of the MinuteOfHour members that specifies the final 15-minute interval that the source will be available for replication.
Exceptions
The start time is after the end time.
One or more parameters is not valid.
days
is null
.
Remarks
All of the parameters in this method are inclusive.
This method is cumulative and does not remove any existing schedule information. If an existing schedule and the new schedule overlap, the result will still be cumulative. To clear the schedule, use the ResetSchedule method.
See also
Applies to
SetSchedule(DayOfWeek[], HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour)
- Source:
- ActiveDirectorySchedule.cs
- Source:
- ActiveDirectorySchedule.cs
Adds a range of times for multiple days to the schedule.
public:
void SetSchedule(cli::array <DayOfWeek> ^ days, System::DirectoryServices::ActiveDirectory::HourOfDay fromHour, System::DirectoryServices::ActiveDirectory::MinuteOfHour fromMinute, System::DirectoryServices::ActiveDirectory::HourOfDay toHour, System::DirectoryServices::ActiveDirectory::MinuteOfHour toMinute);
public void SetSchedule (DayOfWeek[] days, System.DirectoryServices.ActiveDirectory.HourOfDay fromHour, System.DirectoryServices.ActiveDirectory.MinuteOfHour fromMinute, System.DirectoryServices.ActiveDirectory.HourOfDay toHour, System.DirectoryServices.ActiveDirectory.MinuteOfHour toMinute);
member this.SetSchedule : DayOfWeek[] * System.DirectoryServices.ActiveDirectory.HourOfDay * System.DirectoryServices.ActiveDirectory.MinuteOfHour * System.DirectoryServices.ActiveDirectory.HourOfDay * System.DirectoryServices.ActiveDirectory.MinuteOfHour -> unit
Public Sub SetSchedule (days As DayOfWeek(), fromHour As HourOfDay, fromMinute As MinuteOfHour, toHour As HourOfDay, toMinute As MinuteOfHour)
Parameters
- days
- DayOfWeek[]
One of the DayOfWeek members that specifies the day of the week that the source will be available for replication.
- fromHour
- HourOfDay
One of the HourOfDay members that specifies the first hour that the source will be available for replication.
- fromMinute
- MinuteOfHour
One of the MinuteOfHour members that specifies the first 15-minute interval that the source will be available for replication.
- toHour
- HourOfDay
One of the HourOfDay members that specifies the final hour that the source will be available for replication.
- toMinute
- MinuteOfHour
One of the MinuteOfHour members that specifies the final 15-minute interval that the source will be available for replication.
Exceptions
The start time is after the end time.
One or more parameters is not valid.
days
is null
.
Remarks
All of the parameters in this method are inclusive.
This method is cumulative and does not remove any existing schedule information. If an existing schedule and the new schedule overlap, the result will still be cumulative. To clear the schedule, use the ResetSchedule method.