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

Class ContentUrlResolverEvents

Base class for IContentUrlResolverEvents implementations

Inheritance
System.Object
ContentUrlResolverEvents
Namespace: EPiServer.Core.Routing
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public abstract class ContentUrlResolverEvents : Object, IContentUrlResolverEvents

Constructors

ContentUrlResolverEvents()

Declaration
protected ContentUrlResolverEvents()

Methods

OnResolvedUrl(UrlResolverEventArgs)

Call to raise ResolvedUrl event

Declaration
protected void OnResolvedUrl(UrlResolverEventArgs args)
Parameters
Type Name Description
UrlResolverEventArgs args

The event argument

OnResolvingUrl(UrlResolverEventArgs)

Call to raise ResolvingUrl event

Declaration
protected void OnResolvingUrl(UrlResolverEventArgs args)
Parameters
Type Name Description
UrlResolverEventArgs args

The event argument

Events

ResolvedUrl

Raised after an url has been resolved.

Declaration
public event EventHandler<UrlResolverEventArgs> ResolvedUrl
Event Type
Type Description
System.EventHandler<UrlResolverEventArgs>
Remarks

An event handler can modify for example the resolved content reference through Context

An event handler can set State to Abort to prevent content from being resolved.

ResolvingUrl

Raised before an url is resolved.

Declaration
public event EventHandler<UrlResolverEventArgs> ResolvingUrl
Event Type
Type Description
System.EventHandler<UrlResolverEventArgs>
Remarks

If an event handler sets content and language and State to Done then that content will be used.

An event handler can set State to Abort to prevent an url from being resolved.

Implements

Extension Methods