MoveMembersEx Method in Class SMS_ObjectContainerItem

 

Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager

The MoveMembersEx Windows Management Instrumentation (WMI) class method, in System Center 2012 R2 Configuration Manager, moves folder items to another folder.

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

Syntax

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

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.

  • ObjectTypeName
    Data type: UInt32

    Qualifiers: [in]

    The name of the 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

Configuration Manager Console Extension Server WMI Classes