Class AuditItem
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public sealed class AuditItem : EntityBase, IRememberBeingDirty, ICanBeDirty, IAuditItem, IEntity, IDeepCloneable
Constructors
View SourceAuditItem(int, AuditType, int, string?, string?, string?, 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 |
|---|---|---|
| int | objectId | |
| AuditType | type | |
| int | userId | |
| string | entityType | |
| string | comment | |
| string | parameters | |
| 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 |
|---|---|
| string |
EntityType
Gets the audited entity type.
Declaration
public string? EntityType { get; }
Property Value
| Type | Description |
|---|---|
| string |
Parameters
Gets optional additional data parameters.
Declaration
public string? Parameters { get; }
Property Value
| Type | Description |
|---|---|
| string |
UserId
Gets the audit user identifier.
Declaration
public int UserId { get; }
Property Value
| Type | Description |
|---|---|
| int |