SCCM WebService API Reference

SCCMWebService..::..ClearEventlog Method

Clears the event log of the specified computer.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool ClearEventlog(
	string computerName,
	string eventlogName
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function ClearEventlog ( _
	computerName As String, _
	eventlogName As String _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ ClearEventlog(
	String^ computerName, 
	String^ eventlogName
)

Parameters

computerName
Type: String
Name of the computer.
eventlogName
Type: String
Name of the event log.

Return Value

true if succeeded, otherwise false.

Exceptions


ExceptionCondition
ExceptionComputer name must not be empty! or Logfile name must not be empty! or Host is unreachable.