Table of Contents

Class EventLogInfo

Namespace
CMS.EventLog
Assembly
CMS.EventLog.dll

EventLogInfo data container class.

public class EventLogInfo : AbstractInfo<EventLogInfo, IEventLogInfoProvider>, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject, IInfoWithId
Inheritance
object
EventLogInfo
Implements
Inherited Members
Extension Methods

Constructors

EventLogInfo()

Constructor - Creates an empty EventLogInfo object.

public EventLogInfo()

EventLogInfo(DataRow)

Constructor - Creates a new EventLogInfo object from the given DataRow.

public EventLogInfo(DataRow dr)

Parameters

dr DataRow

EventLogInfo(string, string, string)

Constructor - Creates a new EventLogInfo.

public EventLogInfo(string eventType, string source, string eventCode)

Parameters

eventType string

Type of the event. Please use predefined constants from EventType class.

source string

Source of the event (Content, Administration, etc.)

eventCode string

Event code (UPDATEDOC, SENDEMAIL, DELETE, etc.)

Fields

OBJECT_TYPE

Object type

public const string OBJECT_TYPE = "cms.eventlog"

Field Value

string

TYPEINFO

Type information.

public static ObjectTypeInfo TYPEINFO

Field Value

ObjectTypeInfo

Properties

EventCode

Code of event.

public virtual string EventCode { get; set; }

Property Value

string

EventDescription

Description of event.

public virtual string EventDescription { get; set; }

Property Value

string

EventID

Event identifier.

public virtual int EventID { get; set; }

Property Value

int

EventMachineName

Name of machine on which event is being logged.

public virtual string EventMachineName { get; set; }

Property Value

string

EventTime

Time of event.

public virtual DateTime EventTime { get; set; }

Property Value

DateTime

EventType

Type of event, use predefined constants from EventType (or "I" for Info, "W" for Warning, "E" for Error).

public virtual string EventType { get; set; }

Property Value

string

EventUrl

URL of event.

public virtual string EventUrl { get; set; }

Property Value

string

EventUrlReferrer

Referrer URL.

public virtual string EventUrlReferrer { get; set; }

Property Value

string

EventUserAgent

Browser identification.

public virtual 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 virtual string IPAddress { get; set; }

Property Value

string

Source

Source of event.

public virtual string Source { get; set; }

Property Value

string

UserID

User identifier.

public virtual int UserID { get; set; }

Property Value

int

UserName

User name.

public virtual string UserName { get; set; }

Property Value

string

Methods

LoadDefaultData()

Loads the object default data

protected override void LoadDefaultData()

SetObject()

Updates the object using appropriate provider.

protected override void SetObject()