AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

NavigationLifecycleHandler..::..PreUpdate Method

Runs before a navigation update commits. Inspect e.Attributes["UpdateKind"] to distinguish the "Page", "Name", "Title", or "Link" variants. Return false to veto the update.

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

Syntax


public virtual bool PreUpdate(
	Navigation nav,
	ActionArgs e,
	out eCMSEngineEventStatus status,
	out string message
)

Parameters

nav
Type: AdvantageCMS.Core.Admin.BusinessEntity..::..Navigation
The navigation node about to be updated.
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 update; false to veto it.