SCCM WebService API Reference

SCCMWebService..::..AddClientsToCollection Method

Adds the specified resource to multiple collections and removes it from its contrary collections. (Install <-> Uninstall)

Namespace:  SCCMWebService
Assembly:  SCCMWebService (in SCCMWebService.dll)

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool AddClientsToCollection(
	int[] resourceIDs,
	string collectionID
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function AddClientsToCollection ( _
	resourceIDs As Integer(), _
	collectionID As String _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ AddClientsToCollection(
	array<int^>^ resourceIDs, 
	String^ collectionID
)

Parameters

resourceIDs
Type: array<Int32>[]()[][]
The resource I ds.
collectionID
Type: String
The collection ID.

Return Value

True if successfull, otherwise false.