November Happy Hour will be moved to Thursday December 5th.

Class Activity

Represents an activity recorded in the activity log. It can be a content related activity like a publish operation, a project related activity like an item added to the project or a manually added message.

Namespace: EPiServer.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public abstract class Activity : Object

Constructors

Activity(String, Int32)

Initializes a new instance of the Activity class.

Declaration
protected Activity(string activityType, int action)
Parameters
Type Name Description
System.String activityType

String that represents the type of this activity.

System.Int32 action

Integer representing the type action that this activity represents.

Activity(String, Int32, IDictionary<String, String>)

Initializes a new instance of the Activity class.

Declaration
protected Activity(string activityType, int action, IDictionary<string, string> extendedData)
Parameters
Type Name Description
System.String activityType

String that represents the type of this activity.

System.Int32 action

Integer representing the type action that this activity represents.

System.Collections.Generic.IDictionary<System.String, System.String> extendedData

Extended data associated with this activity

Properties

Action

Gets an integer that represents the type of action that this Activity describes.

Declaration
public virtual int Action { get; }
Property Value
Type Description
System.Int32

ActivityType

Gets the type of this Activity. System related types are specified in ActivityType.

Declaration
public virtual string ActivityType { get; }
Property Value
Type Description
System.String

ChangedBy

Gets the username of the user that caused the action that this Activity has recorded.

Declaration
public virtual string ChangedBy { get; protected set; }
Property Value
Type Description
System.String

Created

Gets the date and time when this Activity was created.

Declaration
public virtual DateTime Created { get; protected set; }
Property Value
Type Description
System.DateTime

ExtendedData

Gets a collection of extended data associated with this Activity.

Declaration
public IDictionary<string, string> ExtendedData { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>

ID

Gets the identity of this Activity.

Declaration
public virtual long ID { get; }
Property Value
Type Description
System.Int64

RawData

Gets or sets a string representing extended information about this Activity. This is the raw format of the data as it is persisted in storage.

Declaration
public virtual string RawData { get; protected set; }
Property Value
Type Description
System.String

RelatedItem

Gets or sets the item this Activity is related to.

Declaration
protected virtual Uri RelatedItem { get; set; }
Property Value
Type Description
System.Uri
Remarks

For content activities like publish it will be the content version. For project items like "item added to project" it will be project. For messages it will dependend on the type of message.

Extension Methods