Class AuditItem
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public sealed class AuditItem : EntityBase, IRememberBeingDirty, ICanBeDirty, IAuditItem, IEntity, IDeepCloneableConstructors
View SourceAuditItem(Int32, AuditType, Int32, String, String, String, Nullable<DateTime>)
Initializes a new instance of the AuditItem class.
Declaration
public AuditItem(int objectId, AuditType type, int userId, string entityType, string comment = null, string parameters = null, DateTime? createDate = null)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | objectId | |
| AuditType | type | |
| System.Int32 | userId | |
| System.String | entityType | |
| System.String | comment | |
| System.String | parameters | |
| System.Nullable<DateTime> | createDate | 
Properties
View SourceAuditType
Gets the audit type.
Declaration
public AuditType AuditType { get; }Property Value
| Type | Description | 
|---|---|
| AuditType | 
Comment
Gets the audit comments.
Declaration
public string Comment { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
EntityType
Gets the audited entity type.
Declaration
public string EntityType { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Parameters
Gets optional additional data parameters.
Declaration
public string Parameters { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
UserId
Gets the audit user identifier.
Declaration
public int UserId { get; }Property Value
| Type | Description | 
|---|---|
| System.Int32 |