Microsoft Internet Security and Acceleration Server 2000

FPCSchedule.Set Method

Adds a set of hours to the schedule.

VBScript Syntax[VBScript]

FPCSchedule.Set( Day, Hour )

C++ Syntax[C++]

HRESULT Set(
  FpcScheduleDays Day, 
  FpcScheduleHours Hour
);

Parameters

Day
Value from the FpcScheduleDays enumerated type that specifies a day. It can be ALL_WEEK, SUN, MON, and so on.
Hour
Value from the FpcScheduleHours enumerated type that specifies an hour or hours. It can be ALL_DAY, AM_0, AM_1, PM_1, PM_2, and so on.

Example

The following example adds "3AM on Sunday" to the set:

Set(SUN, AM_3)

The following example adds "6AM on every day" to the set:

Set(ALL_WEEK, AM_6)

The following example adds all of Monday to the set:

Set(MON, ALL_DAY)

The following example adds all hours of the week to the set:

Set(ALL_WEEK, ALL_DAY)

Remarks

The hour blocks defined by a schedule include the specified time and the one-hour block beyond that time. For example, the hour designated by 2_PM is the one-hour time block of between 2 P.M. and 3 P.M.

Applies To

FPCSchedule

See Also

IsSet, UnSet