AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageAttributeControl..::..OnPreCancel Method

Hook fired before Cancel()()()() runs. Return false to abort the cancel (the dialog stays open); a non-empty message is surfaced.

Namespace:  AdvantageCMS.Core.Common.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


protected virtual bool OnPreCancel(
	AdvantageAttributeArgs e,
	out string message
)

Parameters

e
Type: AdvantageCMS.Core.Common.BaseClasses..::..AdvantageAttributeArgs
The lifecycle snapshot for the cancel action.
message
Type: String%
Outbound message surfaced to the user when the hook returns false.

Return Value

true to allow the cancel to proceed; false to abort it.