Class ActivityOptions
Contains various options that can be used to configure how activities should be handled within CMS
Inheritance
System.Object
ActivityOptions
Namespace: EPiServer.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[Options(ConfigurationSection = "Cms")]
public class ActivityOptions : Object
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 |