SaaS CMS has officially launched! Learn more now.

Class ActivityQuery

Class containing query information for retrieving activities using the IActivityQueryService.

Inheritance
System.Object
ActivityQuery
Namespace: EPiServer.DataAbstraction.Activities
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class ActivityQuery : Object

Constructors

ActivityQuery()

Declaration
public ActivityQuery()

Properties

Action

If set, only activities with a matching action will be returned.

Declaration
public Nullable<int> Action { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

ActivityType

If set, only activities with a matching activity type will be returned.

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

ChangedBy

If set, only activities changed by specified user will be returned.

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

CreatedAfter

If set, only activities newer than given date will be returned.

Declaration
public Nullable<DateTime> CreatedAfter { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

CreatedBefore

If set, only activities older than given date will be returned.

Declaration
public Nullable<DateTime> CreatedBefore { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

FromActivity

Gets or set the id of the activity from which processing should start.

Declaration
public Nullable<long> FromActivity { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

IncludeArchived

Gets or sets if activities moved to the archive should be returned.

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

MaxResults

Gets or sets the max number of activities returned. Default value is 100.

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

Order

Gets or sets the order in which the activities should be returned. Default is LatestFirst.

Declaration
public ActivityOrder Order { get; set; }
Property Value
Type Description
ActivityOrder

Extension Methods