ICluster.CreateTaskFromXml Method

Creates a task using the specified XML document.

Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)

Usage

Syntax

'Declaration
Function CreateTaskFromXml ( _
    xmlDocument As String _
) As ITask
ITask CreateTaskFromXml (
    string xmlDocument
)
ITask^ CreateTaskFromXml (
    String^ xmlDocument
)
ITask CreateTaskFromXml (
    String xmlDocument
)
function CreateTaskFromXml (
    xmlDocument : String
) : ITask

Parameters

  • xmlDocument
    An XML string that defines the task to create. For information about writing the XML string, see Task Schema.

Return Value

An ITask interface that represents the task.

Remarks

The initial state of the task is NotSubmitted (see TaskStatus). To run the task, you must add the task to a job or use a command to execute the task. A task is queued or submitted when its parent job is queued or submitted.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003, Windows XP

Target Platforms

Microsoft Windows Compute Cluster Server 2003, Windows Server 2003 with Compute Cluster Pack Client Utilities, Windows XP with Compute Cluster Pack Client Utilities

See Also

Reference

ICluster Interface
ICluster Members
Microsoft.ComputeCluster Namespace
ICluster.AddTask Method
ICluster.CreateJobFromXmlFile Method
ICluster.CreateTask Method
CreateTaskFromXmlFile
ExecuteCommand
IJob.AddTask