PRELIMINARY INFORMATION - SUBJECT TO CHANGE
This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Adds an audit entry, where an entry consists of an audit event record and a first audit object record.
Namespace: Smartsite.Data
Assembly: Smartsite.Data (in Smartsite.Data.dll)
Syntax
C# | Copy Code |
---|---|
public static long AddEntry( string loginName, correlationID, string objectTypeCode, objectIdentifier, string auditTypeCode, params [] arguments ) |
Visual Basic (Declaration) | Copy Code |
---|---|
Public Shared Function AddEntry ( _ loginName As , _ correlationID As , _ objectTypeCode As , _ objectIdentifier As , _ auditTypeCode As , _ ParamArray arguments As () _ ) As Long |
Parameters
- loginName
- String
I: Login name of the user that causes the audit entry.
- correlationID
- Guid
I: Correlation identifier, or the empty Guid if not applicable.
- objectTypeCode
- String
I: Object type code, for example "CONTENT_VERSIONS", as found in the table with audit object types.
- objectIdentifier
- Guid
I: Object identifier. Objects must be identifiable by Guid in order to be able to audit these objects.
- auditTypeCode
- String
I: Audit type, by means of a type code that must exist in the audit types table.
- arguments
- array<Object>[]()
I: Arguments, or null if none. The number of arguments must match the number of arguments as expected by the format string for the this audit type. The argument must be one of the supported types, for example int or string.
Return Value
Returns the number of the created audit event. This can be used to add audit objects to the audit event.See Also
Auditor Class
Smartsite.Data Namespace