Class ContentUrlGeneratorEvents
Base class for IContentUrlGeneratorEvents implementations
Inheritance
System.Object
ContentUrlGeneratorEvents
Implements
Namespace: EPiServer.Core.Routing
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public abstract class ContentUrlGeneratorEvents : Object, IContentUrlGeneratorEvents
Constructors
ContentUrlGeneratorEvents()
Declaration
protected ContentUrlGeneratorEvents()
Methods
OnGeneratedUrl(UrlGeneratorEventArgs)
Call to raise GeneratedUrl event
Declaration
protected void OnGeneratedUrl(UrlGeneratorEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
UrlGeneratorEventArgs | args | The event argument |
OnGeneratingUrl(UrlGeneratorEventArgs)
Call to raise GeneratingUrl event
Declaration
protected void OnGeneratingUrl(UrlGeneratorEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
UrlGeneratorEventArgs | args | The event argument |
Events
GeneratedUrl
Raised after an url has been generated.
Declaration
public 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
public 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.