ActiveDirectorySchedule.SetSchedule Método

Definição

Adiciona um intervalo de horas ao agendamento.Adds a range of times to the schedule.

Sobrecargas

SetSchedule(DayOfWeek, HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour)

Adiciona um intervalo de horas para um único dia ao agendamento.Adds a range of times for a single day to the schedule.

SetSchedule(DayOfWeek[], HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour)

Adiciona um intervalo de horas para vários dias ao agendamento.Adds a range of times for multiple days to the schedule.

SetSchedule(DayOfWeek, HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour)

Adiciona um intervalo de horas para um único dia ao agendamento.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)

Parâmetros

day
DayOfWeek

Um dos membros DayOfWeek que especifica o dia da semana em que a fonte estará disponível para replicação.One of the DayOfWeek members that specifies the day of the week that the source will be available for replication.

fromHour
HourOfDay

Um dos membros HourOfDay que especifica a primeira hora em que a fonte estará disponível para replicação.One of the HourOfDay members that specifies the first hour that the source will be available for replication.

fromMinute
MinuteOfHour

Um dos membros MinuteOfHour que especifica os primeiros 15 minutos em que a fonte estará disponível para replicação.One of the MinuteOfHour members that specifies the first 15-minute interval that the source will be available for replication.

toHour
HourOfDay

Um dos membros HourOfDay que especifica a última hora em que a fonte estará disponível para replicação.One of the HourOfDay members that specifies the final hour that the source will be available for replication.

toMinute
MinuteOfHour

Um dos membros MinuteOfHour que especifica os últimos 15 minutos em que a fonte estará disponível para replicação.One of the MinuteOfHour members that specifies the final 15-minute interval that the source will be available for replication.

Exceções

A hora de início é posterior à hora de término.The start time is after the end time.

Um ou mais dos parâmetros não são válidos.One or more parameters is not valid.

days é null.days is null.

Comentários

Todos os parâmetros nesse método são inclusivos.All of the parameters in this method are inclusive.

Esse método é cumulativo e não remove nenhuma informação de agenda existente.This method is cumulative and does not remove any existing schedule information. Se uma agenda existente e a nova agenda se sobrepõem, o resultado ainda será cumulativo.If an existing schedule and the new schedule overlap, the result will still be cumulative. Para limpar a agenda, use o ResetSchedule método.To clear the schedule, use the ResetSchedule method.

Confira também

Aplica-se a

SetSchedule(DayOfWeek[], HourOfDay, MinuteOfHour, HourOfDay, MinuteOfHour)

Adiciona um intervalo de horas para vários dias ao agendamento.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)

Parâmetros

days
DayOfWeek[]

Um dos membros DayOfWeek que especifica o dia da semana em que a fonte estará disponível para replicação.One of the DayOfWeek members that specifies the day of the week that the source will be available for replication.

fromHour
HourOfDay

Um dos membros HourOfDay que especifica a primeira hora em que a fonte estará disponível para replicação.One of the HourOfDay members that specifies the first hour that the source will be available for replication.

fromMinute
MinuteOfHour

Um dos membros MinuteOfHour que especifica os primeiros 15 minutos em que a fonte estará disponível para replicação.One of the MinuteOfHour members that specifies the first 15-minute interval that the source will be available for replication.

toHour
HourOfDay

Um dos membros HourOfDay que especifica a última hora em que a fonte estará disponível para replicação.One of the HourOfDay members that specifies the final hour that the source will be available for replication.

toMinute
MinuteOfHour

Um dos membros MinuteOfHour que especifica os últimos 15 minutos em que a fonte estará disponível para replicação.One of the MinuteOfHour members that specifies the final 15-minute interval that the source will be available for replication.

Exceções

A hora de início é posterior à hora de término.The start time is after the end time.

Um ou mais dos parâmetros não são válidos.One or more parameters is not valid.

days é null.days is null.

Comentários

Todos os parâmetros nesse método são inclusivos.All of the parameters in this method are inclusive.

Esse método é cumulativo e não remove nenhuma informação de agenda existente.This method is cumulative and does not remove any existing schedule information. Se uma agenda existente e a nova agenda se sobrepõem, o resultado ainda será cumulativo.If an existing schedule and the new schedule overlap, the result will still be cumulative. Para limpar a agenda, use o ResetSchedule método.To clear the schedule, use the ResetSchedule method.

Confira também

Aplica-se a