Class UrlResolverArguments
Used as argument in for example GetUrl(ContentReference, String, UrlResolverArguments) to create an outgoing url.
Inheritance
Inherited Members
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public class UrlResolverArguments
Constructors
UrlResolverArguments()
Declaration
public UrlResolverArguments()
Properties
ContextMode
Gets or sets the mode for the links.
Declaration
public ContextMode ContextMode { get; set; }
Property Value
Type | Description |
---|---|
ContextMode |
Remarks
If not explicitly set it will use current ContextMode
ForceCanonical
Gets or sets a value indicating whether the canonical URL should be returned if there are multiple hostnames defined for the site.
Declaration
public bool ForceCanonical { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
If not set explicitly, the hostname of the resolved URL will be dependent on the current context. If the resolved content is on a different site than the current, the canonical URL will always be returned. If the content is on the same site, the canonical URL will only be returned if the current hostname is set to be redirected.
RouteValues
Gets or sets the route values.
Declaration
public IDictionary<string, object> RouteValues { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
Remarks
If not explicitly a new instance will be created.