Class UrlGeneratorContext
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The context that is used during url generation. Different IUrlGeneratorPipelineStep instances in the pipeline can update the Url depending on UrlGeneratorContext and UrlGeneratorOptions.
Inheritance
Inherited Members
Namespace: EPiServer.Core.Routing.Pipeline.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public class UrlGeneratorContext
Constructors
UrlGeneratorContext(ContentReference)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates a new context instance
Declaration
public UrlGeneratorContext(ContentReference contentLink)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentReference | contentLink | The contentlink for which an url is to be generated |
Properties
ContentLink
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A reference to the content item for which an url is generated
Declaration
public ContentReference ContentLink { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentReference |
CurrentHost
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The host that current request is served under or null if the host could not be resolved.
Declaration
public HostDefinition CurrentHost { get; set; }
Property Value
| Type | Description |
|---|---|
| HostDefinition |
Host
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The host that the content is served under or null if the host could not be resolved.
Declaration
public HostDefinition Host { get; set; }
Property Value
| Type | Description |
|---|---|
| HostDefinition |
Language
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The language version of the content that is linked
Declaration
public CultureInfo Language { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Globalization.CultureInfo |
RouteValues
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Custom values that can be used to pass data between different steps in the pipeline.
Declaration
public IDictionary<string, object> RouteValues { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IDictionary<System.String, System.Object> |
Url
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The Url that is being generated
Declaration
public UrlBuilder Url { get; set; }
Property Value
| Type | Description |
|---|---|
| UrlBuilder |