SCCMWebService..::..SetEventlogSize Method
Sets the size of the event log.
Namespace:
SCCMWebServiceAssembly: SCCMWebService (in SCCMWebService.dll)
Syntax
[SoapHeaderAttribute] [WebMethodAttribute] public bool SetEventlogSize( string computerName, string eventlogName, long eventlogSizeKB )
<SoapHeaderAttribute> _ <WebMethodAttribute> _ Public Function SetEventlogSize ( _ computerName As String, _ eventlogName As String, _ eventlogSizeKB As Long _ ) As Boolean
[SoapHeaderAttribute] [WebMethodAttribute] public: bool^ SetEventlogSize( String^ computerName, String^ eventlogName, long long^ eventlogSizeKB )
Parameters
- computerName
- Type: String
Name of the computer.
- eventlogName
- Type: String
Name of the eventlog.
- eventlogSizeKB
- Type: Int64
The eventlog size KB.
Return Value
true if succeeded, otherwise false.Exceptions
Exception | Condition |
---|---|
Exception | Computer name must not be empty. or Eventlog name must not be empty. or Eventlog size must not be less than or equal 0. or Host is unreachable. or Eventlog + eventlogName + not found on computer + computerName + . |