Microsoft Internet Security and Acceleration Server 2004 SDK

ScheduleDays Property of IFPCScheduledContentDownloadConfig[C++]

FPCScheduledContentDownloadConfig.ScheduleDays [Visual Basic]

[C++]

The ScheduleDays property gets a bitmask of the FpcDaysOfWeek enumerated type that specifies the days of the week on which the content download job will run.

HRESULT get_ScheduleDays();

Parameters

pDays
Pointer to a value from the FpcDaysOfWeek enumerated type that is set on return to the bitmask specifying the days of the week on which the content download job will run.

Return Values

This property method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

This property is read-only. It is set by calling the SetTaskPeriod method. Its default value is fpcNone.

Each of the first seven bits in the bitmask corresponds to a day of the week. Bit 0 corresponds to Sunday, bit 1 corresponds to Monday, and so on.

Example Code

The following code sets the ScheduleDays property to Sunday, Tuesday, and Thursday.

Dim jobConfig As FPCScheduledContentDownloadConfig
...
jobConfig.ScheduleDays = 0x15

The hexadecimal value 0x15 (which corresponds to the decimal value 21) is equal to the binary value 10101. The right bit represents Sunday, the next bit represents Monday, and so forth. Thus, the bits corresponding to Sunday, Tuesday, and Thursday are set, while the bits corresponding to Monday and Wednesday are not set.

[Visual Basic]

The ScheduleDays property gets a bitmask of the FpcDaysOfWeek enumerated type that specifies the days of the week on which the content download job will run.

Property ScheduleDays As FpcDaysOfWeek

Property Value

Bitmask of the FpcDaysOfWeek enumerated type that specifies the days of the week on which on which the content download job will run.

Remarks

This property is read-only. It is set by calling the SetTaskPeriod method. Its default value is fpcNone.

Each of the first seven bits in the bitmask corresponds to a day of the week. Bit 0 corresponds to Sunday, bit 1 corresponds to Monday, and so on.

Example Code

The following code sets the ScheduleDays property to Sunday, Tuesday, and Thursday.

Dim jobConfig As FPCScheduledContentDownloadConfig
...
jobConfig.ScheduleDays = 0x15

The hexadecimal value 0x15 (which corresponds to the decimal value 21) is equal to the binary value 10101. The right bit represents Sunday, the next bit represents Monday, and so forth. Thus, the bits corresponding to Sunday, Tuesday, and Thursday are set, while the bits corresponding to Monday and Wednesday are not set.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCScheduledContentDownloadConfig