MoveMembers Method in Class SMS_ObjectContainerItem

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 MoveMembers Windows Management Instrumentation (WMI) class method, in Configuration Manager, moves one or more folder items to another folder.

SInt32 MoveMembers(
     String InstanceKeys[],
     UInt32 ContainerNodeID, 
     UInt32 TargetContainerNodeID, 
      UInt32 ObjectType,
);

Parameters

  • InstanceKeys
    Data type: String Array

    Qualifiers: [in]

    Instance keys that identify the folder items to move.

  • ContainerNodeID
    Data type: UInt32

    Qualifiers: [in]

    ID of the folder, or node, from which to copy the items.

  • TargetContainerNodeID
    Data type: UInt32

    Qualifiers: [in]

    ID of the folder, or node, to which to move the items.

  • ObjectType
    Data type: UInt32

    Qualifiers: [in]

    The type of object supported by the console folder.

Return Value

An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.

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

Remarks

An item cannot be moved to a folder of a different type. The ObjectType properties of SMS_ObjectContainerNode Server WMI Class and SMS_ObjectContainerItem Server WMI Class can be used to determine object types.

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_ObjectContainerItem Server WMI Class
SMS_ObjectContainerNode Server WMI Class
Configuration Manager Console Folders