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

Class Activity

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. 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.

Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public abstract class Activity

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, String)

Initializes a new instance of the Activity class.

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

Type of the activity.

System.Int32 action

The action.

System.String changedBy

The changed by.

Properties

Action

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

Declaration
protected 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
protected 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; }
Property Value
Type Description
System.String

Created

Gets the date and time when this Activity was created.

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

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
protected virtual string RawData { get; 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