IMonthlyTrigger::RandomDelay property

Gets or sets a delay time that is randomly added to the start time of the trigger.

This property is read/write.

Syntax


HRESULT put_RandomDelay(
  [in]  BSTR randomDelay
);

HRESULT get_RandomDelay(
  [out] BSTR *pRandomDelay
);

Property value

A BSTR value that contains the delay time that is randomly added to the start time of the trigger. The format for this string is P<days>DT<hours>H<minutes>M<seconds>S (for example, P2DT5S is a 2 day, 5 second delay).

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

IMonthlyTrigger

 

 

Show: