ActiveDirectorySchedule.SetSchedule 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将一个时间范围添加到日程安排中。
重载
SetSchedule(DayOfWeek, HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour) |
将一天中的一定时间范围添加到日程安排中。 |
SetSchedule(DayOfWeek[], HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour) |
将若干天中的一个时间范围添加到日程安排中。 |
SetSchedule(DayOfWeek, HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour)
- Source:
- ActiveDirectorySchedule.cs
- Source:
- ActiveDirectorySchedule.cs
- Source:
- ActiveDirectorySchedule.cs
将一天中的一定时间范围添加到日程安排中。
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)
参数
- fromMinute
- MinuteOfHour
MinuteOfHour 成员之一,指定源将可用于复制的第一个 15 分钟间隔。
- toMinute
- MinuteOfHour
MinuteOfHour 成员之一,指定源将可用于复制的最后 15 分钟间隔。
例外
起始时间在结束时间之后。
一个或多个参数无效。
days
为 null
。
注解
此方法中的所有参数都是非独占参数。
此方法是累积的,不会删除任何现有的计划信息。 如果现有计划和新计划重叠,结果仍将是累积的。 若要清除计划,请使用 ResetSchedule 方法。
另请参阅
适用于
SetSchedule(DayOfWeek[], HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour)
- Source:
- ActiveDirectorySchedule.cs
- Source:
- ActiveDirectorySchedule.cs
- Source:
- ActiveDirectorySchedule.cs
将若干天中的一个时间范围添加到日程安排中。
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)
参数
- fromMinute
- MinuteOfHour
MinuteOfHour 成员之一,指定源将可用于复制的第一个 15 分钟间隔。
- toMinute
- MinuteOfHour
MinuteOfHour 成员之一,指定源将可用于复制的最后 15 分钟间隔。
例外
起始时间在结束时间之后。
一个或多个参数无效。
days
为 null
。
注解
此方法中的所有参数都是非独占参数。
此方法是累积的,不会删除任何现有的计划信息。 如果现有计划和新计划重叠,结果仍将是累积的。 若要清除计划,请使用 ResetSchedule 方法。