SCCM WebService API Reference

SCCMWebService..::..AddClientToCollection2 Method

Adds the client to the specified collection.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool AddClientToCollection2(
	string clientID,
	string collectionID
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function AddClientToCollection2 ( _
	clientID As String, _
	collectionID As String _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ AddClientToCollection2(
	String^ clientID, 
	String^ collectionID
)

Parameters

clientID
Type: String
The client identifier.
collectionID
Type: String
The collection identifier.

Return Value

true if successfull, false otherwise.

Exceptions


ExceptionCondition
ExceptionResource with client id ' + clientID + ' not found.