Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8838

Correct way to register a global event

$
0
0
I need to register a custom global event that will be executed before updating RoleInfo objects in Kentico 11 CMS. Documentation states this: event class.event action.event type += handler method nameWhere:Event class – event classes are containers of events related to groups of functionalityEvent action – represents a specific action that occurs within the systemEvent type – determines when exactly the event takes place, typically Before or After the action. Some actions only have one type: ExecuteRegarding this, is the correct way to register the event I need? If not, explanation would be appreciated as this part of documentation remains unclear for me.RoleInfoProvider.Events.Update.Before += MyMethod

Viewing all articles
Browse latest Browse all 8838

Trending Articles