Editare

Partajați prin


ActiveDirectorySchedule.RawSchedule Property

Definition

Gets or sets a three-dimensional array that indicates at what time during the week that the source is available for replication.

public:
 property cli::array <bool, 3> ^ RawSchedule { cli::array <bool, 3> ^ get(); void set(cli::array <bool, 3> ^ value); };
public bool[,,] RawSchedule { get; set; }
member this.RawSchedule : bool[,,] with get, set
Public Property RawSchedule As Boolean(,,)

Property Value

Boolean[,,]

A three-dimensional array of Boolean elements in which the element is true if the source is available for replication during that specific 15-minute interval. The element is false if the source is not available for replication.

The array is in the form RawSchedule[<day-of-week>, <hour>, <15-minute interval>]. All of these values are zero-based and the week begins at 00:00 on Sunday morning, Coordinated Universal Time.

The following are the valid values for the day-of-week.

Day-of-week value Indicated day of the week.
0 Sunday
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday

The hour is zero-based and specified in 24-hour format. For example, 2 P.M. would be specified as 14. Valid values are 0-23.

The 15-minute interval specifies the 15-minute block within the hour that the source is available for replication. The following table identifies the possible values for the 15-minute interval.

15-minute interval Description
0 The source is available for replication from 0 to 14 minutes after the hour.
1 The source is available for replication from 15 to 29 minutes after the hour.
2 The source is available for replication from 30 to 44 minutes after the hour.
3 The source is available for replication from 45 to 59 minutes after the hour.

Examples

The following example shows how to use this property to determine if the source is available for replication at 15:50 Coordinated Universal Time on Tuesday:

bool isAvailable = scheduleObject.RawSchedule[2, 15, 3];

The following example shows how to use this property to calculate the 15-minute interval at runtime by dividing the minutes by 15:

bool isAvailable = scheduleObject.RawSchedule[2, 15, (Int32)50/15];  

Applies to