SCCM WebService API Reference

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

Adds the client to collection.

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

Syntax


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

Parameters

resourceID
Type: Int32
The resource identifier.
collectionID
Type: String
The collection identifier.
updateMembership
Type: Boolean
if set to true [update membership].

Return Value

true if successfull, false otherwise.

Exceptions


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