AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

SitePageLifecycleHandler..::..Validate Method

Called at the start of every CRUD/publish operation on a SitePage, before any Pre hook. Return false to veto the entire operation.

Namespace:  AdvantageCMS.Core.Admin.Extensibility
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public virtual bool Validate(
	SitePage page,
	eCMSActions action,
	ActionArgs e,
	out eCMSEngineEventStatus status,
	out string message
)

Parameters

page
Type: AdvantageCMS.Core.Admin.BusinessEntity..::..SitePage
The site page being validated.
action
Type: AdvantageCMS.Core.Admin.Enums..::..eCMSActions
The CMS action about to be performed.
e
Type: AdvantageCMS.Core.Admin.Event..::..ActionArgs
Action context (user, SQL, domain, language, attributes).
status
Type: AdvantageCMS.Core.Admin.Event..::..eCMSEngineEventStatus%
Outputs the engine event status for this hook.
message
Type: String%
Outputs a message surfaced to the engine event log.

Return Value

true to allow the operation; false to veto it entirely.