3.2.4.8.12 TaskArguments (Put) (Opnum 43)

The TaskArguments (Put) method sets the TaskArguments property.

 [propput] HRESULT TaskArguments(
   [in] BSTR task
 );

task: Supplies the command-line arguments to pass to the task. The arguments need to be formatted as command-line arguments. PLA MUST provide the following substitution variables that can be included in the arguments string. If one or more of these variables is included in the task arguments, PLA performs the substitution for the variables when the task is triggered.

Variable

Description

{name}

Name of the alert data collector.

{counter}

Path of the performance counter that crossed the threshold.

{date}

Time that the threshold was crossed.

{threshold}

 Value of the threshold.

{value}

 Value of the performance counter.

{usertext}

String from TaskUserTextArguments.

Return Values: This method MUST return an HRESULT with the severity bit clear on success as specified in [MS-ERREF]; otherwise, it MUST return one of the errors as defined in 2.2.1 or one of the errors as defined in [MS-ERREF] section 2.1.