SetTask Method

The SetTask method creates an instance of the Task class, sets it's properties to the values passed as arguments, and then sets the Task property to the new ITask dispinterface.

VBScript Syntax

IProject.SetTask AccountName [, Interval [, StartTime]]

Parameters

AccountName

a string specifying the account to use when running the refresh cycle. Default=""

Interval

an optional integer specifying the interval in minutes between successive refresh cycles. Default=1440. (once a day)

Start

an optional date value after which to start the task. Default=None.

Return Value

None

Example

' Using the Windows Scripting Host and VBScript
Set Project = CreateObject("Push.Project")
call Project.Load("News Project")
call Project.SetTask("ChannelUser",720)

See Also

Class Task


© 1997-1998 Microsoft Corporation. All rights reserved.