Dela via


LoadFromXml Method in Class SMS_TaskSequence

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

The LoadFromXml Windows Management Instrumentation (WMI) class method, in Configuration Manager, loads a task sequence into WMI objects from task sequence XML.

Warning

As of Configuration Manager 2007 SP1, LoadFromXml has been replaced by the ImportSequence method on the SMS_TaskSequencePackage server WMI class.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

SMS_TaskSequence LoadFromXml(
      String Xml
);

Parameters

  • Xml
    Data type: String

    Qualifiers: [in]

    The task sequence XML to use to build the WMI objects.

Return Values

An SMS_TaskSequence Server WMI Class object.

For information about handling returned errors, see About Configuration Manager Errors.

Remarks

Your application uses this method to import XML from an outside provider, for example, the user interface. It builds and returns a WMI object model based on the represented task sequence.

Warning

You should not make changes to task sequences by using the XML. Rather, you should use the task sequence object model to create and edit task sequences. For more information, see Operating System Deployment Task Sequence Object Model.

Note

Use the SetSequence Method in Class SMS_TaskSequencePackage method to add a task sequence to a task sequence package.

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Concepts

SMS_TaskSequence Server WMI Class