Class EventLogData
Contains data to be logged as an event.
public class EventLogData
- Inheritance
-
objectEventLogData
- Extension Methods
Constructors
EventLogData(EventTypeEnum, string, string)
Initializes a new instance of the EventLogData class.
public EventLogData(EventTypeEnum type, string source, string eventCode)
Parameters
type
EventTypeEnumThe event type.
source
stringSource of the event (Content, Administration, etc.)
eventCode
stringEvent code (UPDATEDOC, SENDEMAIL, DELETE, etc.)
Exceptions
- ArgumentException
Thrown when either or both of parameters
source
oreventCode
are null, empty, or their length exceeds the limit.
Properties
EventCode
Code of event.
public string EventCode { get; set; }
Property Value
- string
EventDescription
Description of event.
public string EventDescription { get; set; }
Property Value
- string
EventMachineName
Name of machine on which event is being logged.
public string EventMachineName { get; set; }
Property Value
- string
EventTime
Time of event.
public DateTime EventTime { get; set; }
Property Value
- DateTime
EventType
Type of event.
public EventTypeEnum EventType { get; set; }
Property Value
EventUrl
URL of event.
public string EventUrl { get; set; }
Property Value
- string
EventUrlReferrer
Referrer URL.
public string EventUrlReferrer { get; set; }
Property Value
- string
EventUserAgent
Browser identification.
public string EventUserAgent { get; set; }
Property Value
- string
Exception
Store Exception caused by Event.
public Exception Exception { get; set; }
Property Value
- Exception
IPAddress
IP address.
public string IPAddress { get; set; }
Property Value
- string
LoggingPolicy
Logging policy for this event.
public LoggingPolicy LoggingPolicy { get; set; }
Property Value
Remarks
DEFAULT is used as default.
Source
Source of event.
public string Source { get; set; }
Property Value
- string
UserID
User identifier.
public int UserID { get; set; }
Property Value
- int
UserName
User name.
public string UserName { get; set; }
Property Value
- string