SaaS CMS has officially launched! Learn more now.

Class ContentApprovalEventArgsExtensions

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Extension method class for ApprovalEventArgs

Inheritance
System.Object
ContentApprovalEventArgsExtensions
Namespace: EPiServer.Approvals.ContentApprovals
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public static class ContentApprovalEventArgsExtensions : Object

Methods

Converts the ApprovalReference to a ContentReference for content approvals and returns it

Declaration
public static ContentReference GetContentLink(this ApprovalEventArgs eventArgs)
Parameters
Type Name Description
ApprovalEventArgs eventArgs

The eventArgs that is being extended

Returns
Type Description
ContentReference

A ContentReference for content approvals

IsContentApproval(ApprovalEventArgs)

Check to see if an ApprovalEventArgs is a content approval

Declaration
public static bool IsContentApproval(this ApprovalEventArgs eventArgs)
Parameters
Type Name Description
ApprovalEventArgs eventArgs

The eventArgs that is being extended

Returns
Type Description
System.Boolean

Bool specifying if this is a content approval event