SCCMWebService..::..SetCacheSize Method
Sets the ccm cache size.
Namespace:
SCCMWebServiceAssembly: 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 )
Return Value
true if succeeded, otherwise false.Exceptions
Exception | Condition |
---|---|
Exception | Computer 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 + ! |