Interface IContentUrlGeneratorEvents
Specifies events that are raised during url generation using IUrlResolver
Namespace: EPiServer.Core.Routing
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IContentUrlGeneratorEvents
Events
GeneratedUrl
Raised after an url has been generated.
Declaration
event EventHandler<UrlGeneratorEventArgs> GeneratedUrl
Event Type
Type | Description |
---|---|
System.EventHandler<UrlGeneratorEventArgs> |
Remarks
An event handler can modify the generated url through Context
An event handler can set State to Abort to prevent an url from being generated.GeneratingUrl
Raised before an url is generated.
Declaration
event EventHandler<UrlGeneratorEventArgs> GeneratingUrl
Event Type
Type | Description |
---|---|
System.EventHandler<UrlGeneratorEventArgs> |
Remarks
If an event handler sets the url on Context and assign State to Done then that url will be used.
An event handler can set State to Abort to prevent an url from being generated.