LoadFromXml Method in Class SMS_TaskSequence

System Center

Updated: October 28, 2009

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.

CautionCaution
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.

An SMS_TaskSequence Server WMI Class object.

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

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.

CautionCaution
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.

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

Runtime Requirements

Development Requirements

Show: