ActiveDirectorySchedule.RawSchedule Property

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

Namespace:  System.DirectoryServices.ActiveDirectory
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public bool[,,] RawSchedule { get; set; }

Property Value

Type: System.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.

The following C# example shows how to use this property to determine if the source is available for replication at 15:50 Coordinated Universal Time on Tuesday.
Boolean isAvailable = scheduleObject.RawSchedule[2, 15, 3];
The following C# example shows how to use this property to calculate the 15-minute interval at runtime by dividing the minutes by 15.
Boolean isAvailable = scheduleObject.RawSchedule[2, 15, (Int32)50/15];

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft