November Happy Hour will be moved to Thursday December 5th.

Class ContentUrlGeneratorEvents

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Base class for IContentUrlGeneratorEvents implementations

Inheritance
System.Object
ContentUrlGeneratorEvents
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core.Routing.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public abstract class ContentUrlGeneratorEvents : IContentUrlGeneratorEvents

Constructors

ContentUrlGeneratorEvents()

Declaration
protected ContentUrlGeneratorEvents()

Methods

OnGeneratedUrl(UrlGeneratorEventArgs)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Call to raise GeneratedUrl event

Declaration
protected void OnGeneratedUrl(UrlGeneratorEventArgs args)
Parameters
Type Name Description
UrlGeneratorEventArgs args

The event argument

OnGeneratingUrl(UrlGeneratorEventArgs)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Call to raise GeneratingUrl event

Declaration
protected void OnGeneratingUrl(UrlGeneratorEventArgs args)
Parameters
Type Name Description
UrlGeneratorEventArgs args

The event argument

Events

GeneratedUrl

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

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

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

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.

Implements

Extension Methods