SCCM WebService API Reference

SCCMWebService..::..SetCacheSize Method

Sets the ccm cache size.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool SetCacheSize(
	string computerName,
	uint cacheSize
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function SetCacheSize ( _
	computerName As String, _
	cacheSize As UInteger _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ SetCacheSize(
	String^ computerName, 
	unsigned int^ cacheSize
)

Parameters

computerName
Type: String
Name of the computer.
cacheSize
Type: UInt32
The cache size to set.

Return Value

true if succeeded, otherwise false.

Exceptions


ExceptionCondition
ExceptionComputer name must not be empty! or Unable to get DNS host name for computer + computerName + ! or Cache size must be > 0! or Unable to delete cache on computer + computerName + because host is unreachable! or Unable to stop service CcmExec on computer + computerName + ! or Unable to start service CcmExec on computer + computerName + !