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

Class ContentUrlGeneratorExtensions

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Extension methods for IContentUrlGenerator

Inheritance
System.Object
ContentUrlGeneratorExtensions
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: 10.10.4
Syntax
public static class ContentUrlGeneratorExtensions

Methods

Generate(IContentUrlGenerator, ContentReference)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Generates an url for a content instance.

Declaration
public static Uri Generate(this IContentUrlGenerator generateUrl, ContentReference contentLink)
Parameters
Type Name Description
IContentUrlGenerator generateUrl

The url generator that is extended

ContentReference contentLink

A reference for the content for which the url is to be generated

Returns
Type Description
System.Uri

The generated url or null if no url could be generated

Remarks

Language will be determined from request context.

Generate(IContentUrlGenerator, ContentReference, CultureInfo)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Generates an url for a content instance in the specified language

Declaration
public static Uri Generate(this IContentUrlGenerator generateUrl, ContentReference contentLink, CultureInfo language)
Parameters
Type Name Description
IContentUrlGenerator generateUrl

The url generator that is extended

ContentReference contentLink

A reference for the content for which the url is to be generated

System.Globalization.CultureInfo language

The language version to generate an url for

Returns
Type Description
System.Uri

The generated url or null if no url could be generated