SCCM WebService API Reference

SCCMWebService..::..ChangeEventLogOverflowAction Method

Changes the event log overflow action.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool ChangeEventLogOverflowAction(
	string computerName,
	string eventlogName,
	OverflowAction action,
	int retentionDays
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function ChangeEventLogOverflowAction ( _
	computerName As String, _
	eventlogName As String, _
	action As OverflowAction, _
	retentionDays As Integer _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ ChangeEventLogOverflowAction(
	String^ computerName, 
	String^ eventlogName, 
	OverflowAction^ action, 
	int^ retentionDays
)

Parameters

computerName
Type: String
Name of the computer.
eventlogName
Type: String
Name of the eventlog.
action
Type: OverflowAction
The action.
retentionDays
Type: Int32
The retention days.

Return Value

true if successfull, otherwise false.

Exceptions


ExceptionCondition
ExceptionComputer name must not be empty. or Eventlog name must not be empty. or The retention days are less than one, or larger than 365. or Host is unreachable. or Eventlog + eventlogName + not found on computer + computerName + .