Table of Contents

Class BeforeConditionalEvent<TArgs>

Namespace
CMS.Base
Assembly
CMS.Base.dll

Conditional event execute in before handler

public class BeforeConditionalEvent<TArgs> : ConditionalEventBase<BeforeConditionalEvent<TArgs>, TArgs>, IConditionalEvent<BeforeConditionalEvent<TArgs>> where TArgs : EventArgs

Type Parameters

TArgs
Inheritance
object
BeforeConditionalEvent<TArgs>
Implements
Inherited Members
Extension Methods

Properties

CancelEvent

If true, the event is canceled after calling the handler

protected bool CancelEvent { get; set; }

Property Value

bool

Methods

ExecuteHandler(object, TArgs)

Executes the handler

protected override void ExecuteHandler(object sender, TArgs args)

Parameters

sender object

Sender

args TArgs

Event arguments

ThenCancel()

Ensures that the event gets cancelled after this handler is called

public BeforeConditionalEvent<TArgs> ThenCancel()

Returns

BeforeConditionalEvent<TArgs>

ThenContinue()

Ensures that the event continues after this handler is called. Also dismissed the ThenCancel call.

public BeforeConditionalEvent<TArgs> ThenContinue()

Returns

BeforeConditionalEvent<TArgs>