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