ITaskDefinition::XmlText property

Gets or sets the XML-formatted definition of the task.

This property is read/write.

Syntax


HRESULT put_XmlText(
  [in]  BSTR xml
);

HRESULT get_XmlText(
  [out] BSTR *pXml
);

Property value

The XML-formatted definition of the task.

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

Remarks

The XML for a task is defined by the Task Scheduler Schema. For an example of task XML, see Daily Trigger Example (XML).

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

ITaskDefinition

 

 

Show: