SCCM WebService API Reference

SCCMWebService..::..AddClientToCollection Method (Int32, String)

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

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

Syntax


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

Parameters

resourceID
Type: Int32
The resource identifier.
collectionID
Type: String
The collection identifier.

Return Value

true if successfull, otherwise false.

Exceptions


ExceptionCondition
ExceptionCollection with CollectionID + collectionID + not found. or Computer with ResourceID + resourceID + not found.