SaaS CMS has officially launched! Learn more now.

Class ContentApprovalActivity

An activity related to ContentApproval events in the system.

Inheritance
System.Object
ContentApprovalActivity
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
public class ContentApprovalActivity : ApprovalActivity

Constructors

ContentApprovalActivity()

Initializes a new instance of the ContentApprovalActivity class.

Declaration
public ContentApprovalActivity()

ContentApprovalActivity(ApprovalActionType, ContentReference, Uri, Int32, Int32, String, String, Boolean)

Initializes a new instance of the ContentApprovalActivity class.

Declaration
public ContentApprovalActivity(ApprovalActionType approvalType, ContentReference contentLink, Uri approvalReference, int approvalID, int definitionVersionID, string changedBy, string comment, bool forced)
Parameters
Type Name Description
ApprovalActionType approvalType
ContentReference contentLink
System.Uri approvalReference
System.Int32 approvalID
System.Int32 definitionVersionID
System.String changedBy
System.String comment
System.Boolean forced

Properties

Gets the ContentReference of the content that the approval refered to by this activity is related to.

Declaration
public virtual ContentReference ContentLink { get; }
Property Value
Type Description
ContentReference

Forced

Gets a flag specifying if the decision was forced.

Declaration
public virtual bool Forced { get; }
Property Value
Type Description
System.Boolean

RelatedItem

Gets or sets the item this Activity is related to.

Declaration
protected override Uri RelatedItem { get; set; }
Property Value
Type Description
System.Uri
Overrides
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