SaaS CMS has officially launched! Learn more now.

Class ActivityOptions

Contains various options that can be used to configure how activities should be handled within CMS

Inheritance
System.Object
ActivityOptions
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: 11.20.7
Syntax
[Options]
public class ActivityOptions

Constructors

ActivityOptions()

Declaration
public ActivityOptions()

Properties

ArchiveRetentionPeriod

Gets or sets the number of months that activities should remain archived before they are deleted.

Declaration
public int ArchiveRetentionPeriod { get; set; }
Property Value
Type Description
System.Int32
Remarks

The default value is 12 months. A value of zero (0) indicates that activities should be deleted immediately. A negative value indicates that the archive should be kept indefinitely (not recommended).

TrackContentSaveEvents

Gets or sets if Content Save events should be tracked and logged as an activity.

Declaration
public bool TrackContentSaveEvents { get; set; }
Property Value
Type Description
System.Boolean

Methods

IsArchivingEnabled()

Gets an value indicating if archiving of activities should be enabled.

Declaration
public bool IsArchivingEnabled()
Returns
Type Description
System.Boolean

Extension Methods