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
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.Approvals.ContentApprovals
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public static class ContentApprovalEventArgsExtensions
Methods
GetContentLink(ApprovalEventArgs)
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 |