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

Interface IContentUrlGenerator

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Signature for component that is used to generate urls to content instances.

Namespace: EPiServer.Core.Routing.Internal
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
public interface IContentUrlGenerator

Methods

Generate(ContentReference, UrlGeneratorOptions)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Generates an url for a content instance or null if no url could be constructed.

Declaration
GeneratedUrl Generate(ContentReference contentLink, UrlGeneratorOptions options)
Parameters
Type Name Description
ContentReference contentLink

A reference for the content for which to generate an url

UrlGeneratorOptions options

Options that can be used to specify how the url should be generated, for example for which language version

Returns
Type Description
GeneratedUrl

A result containing the generated url or null if no url could be generated

Extension Methods