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: 11.20.7Syntax
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
ForceAbsolute
Gets or sets a value indicating whether the absolute URL should be returned
Declaration
public bool ForceAbsolute { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
If set to true the returned value will always be an absolute URL; otherwise it will depend on the current context. The default value is false.
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.