Class IdentityAuditEventArgs
This class is used by events raised from the BackofficeUserManager
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Core.dll
Syntax
public class IdentityAuditEventArgs : EventArgs
Constructors
View SourceIdentityAuditEventArgs(AuditEvent, String, String, String, String)
Declaration
public IdentityAuditEventArgs(AuditEvent action, string ipAddress, string performingUser, string comment, string affectedUsername)
Parameters
Type | Name | Description |
---|---|---|
AuditEvent | action | |
System.String | ipAddress | |
System.String | performingUser | |
System.String | comment | |
System.String | affectedUsername |
IdentityAuditEventArgs(AuditEvent, String, String, String, String, String)
Default constructor
Declaration
public IdentityAuditEventArgs(AuditEvent action, string ipAddress, string performingUser, string comment, string affectedUser, string affectedUsername)
Parameters
Type | Name | Description |
---|---|---|
AuditEvent | action | |
System.String | ipAddress | |
System.String | performingUser | |
System.String | comment | |
System.String | affectedUser | |
System.String | affectedUsername |
Properties
View SourceAction
The action that got triggered from the audit event
Declaration
public AuditEvent Action { get; }
Property Value
Type | Description |
---|---|
AuditEvent |
AffectedUser
The user affected by the event raised
Declaration
public string AffectedUser { get; }
Property Value
Type | Description |
---|---|
System.String |
AffectedUsername
This property is always empty except in the LoginFailed event for an unknown user trying to login
Declaration
public string AffectedUsername { get; }
Property Value
Type | Description |
---|---|
System.String |
Comment
An optional comment about the action being logged
Declaration
public string Comment { get; }
Property Value
Type | Description |
---|---|
System.String |
DateTimeUtc
Current date/time in UTC format
Declaration
public DateTime DateTimeUtc { get; }
Property Value
Type | Description |
---|---|
DateTime |
IpAddress
The source IP address of the user performing the action
Declaration
public string IpAddress { get; }
Property Value
Type | Description |
---|---|
System.String |
PerformingUser
If a user is performing an action on a different user, then this will be set. Otherwise it will be -1
Declaration
public string PerformingUser { get; }
Property Value
Type | Description |
---|---|
System.String |