AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageAttributeControl..::..OnPreLoad Method

Hook fired at the start of ReceiveAdvantageAttributes(AdvantageAttributeArgs), before any state on this control is mutated. Return false to reject the incoming payload (the control is left untouched); a non-empty message is surfaced.

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

Syntax


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

Parameters

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

Return Value

true to allow the load to proceed; false to reject the payload.