Click or drag to resize
EventLogProviderClearEventLog Method

Note: This API is now obsolete.

Clears entire event log and writes new event record with information about this action and the user who performed it.

This method is obsolete and will be removed in future version. Use ClearEventLog(Int32, String, String, Int32) method instead.

Namespace: CMS.EventLog
Assembly: CMS.EventLog (in CMS.EventLog.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use 'CMS.EventLog.EventLogHelper.ClearEventLog(userId, userName, ipAddress, siteId)' code instead.")]
public static void ClearEventLog(
	int userId,
	string userName,
	string ipAddress,
	int siteId
)

Parameters

userId
Type: SystemInt32
User ID for logging purposes
userName
Type: SystemString
User name for logging purposes
ipAddress
Type: SystemString
IP address for logging purposes
siteId
Type: SystemInt32
Site ID for logging purposes
See Also