Class ChannelPreActionEvent

Base class for all channel related events that can be cancelled

Inherited Members
System.EventArgs.Empty
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.ContentChannels.Events
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public abstract class ChannelPreActionEvent : ChannelEventArgs

Constructors

ChannelPreActionEvent(String)

Initializes a new instance of the ChannelPreActionEvent class.

Declaration
public ChannelPreActionEvent(string channelId)
Parameters
Type Name Description
System.String channelId

The channel id.

Properties

Cancel

Set or gets whether the importing action should be cancelled in or not. Default set to false.

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

CancelReason

Gets or sets a the resaon for the cancelleing of the action.

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

Extension Methods