SCCM WebService API Reference

SCCMWebService..::..GetEventLogEntries Method

Gets the last event log entries of the given computer.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public DataSet GetEventLogEntries(
	string computerName,
	string eventLogName
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function GetEventLogEntries ( _
	computerName As String, _
	eventLogName As String _
) As DataSet
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
DataSet^ GetEventLogEntries(
	String^ computerName, 
	String^ eventLogName
)

Parameters

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

Return Value

DataSet

Exceptions


ExceptionCondition
ExceptioncomputerName must not be empty! or Unable to get DNS host name for computer + computerName + ! or EventLogName must not be empty!