Edit

Share via


AddMemberships Method in Class SMS_SecuredCategoryMembership

The AddMemberships Windows Management Instrumentation (WMI) class method, in Configuration Manager, is a batch operation to assign objects to security categories.

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

Syntax

SInt32 AddMemberships(  
     String ObjectIDs[],  
     UInt32 ObjectTypeIDs[],  
     String CategoryIDs[],  
);  

Parameters

ObjectIDs
Data type: String Array

Qualifiers: [in]

Array of object IDs.

ObjectTypeIDs
Data type: UInt32 Array

Qualifiers: [in]

Array of object type IDs.

CategoryIDs
Data type: String Array

Qualifiers: [in]

The security category IDs that the objects will be assigned to.

Return Values

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

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

SMS_SecuredCategoryMembership Server WMI Class