SaaS CMS has officially launched! Learn more now.

Class RouteArguments

Used as argument in for example Route(UrlBuilder, RouteArguments).

Inheritance
System.Object
RouteArguments
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class RouteArguments : Object

Constructors

RouteArguments()

Declaration
public RouteArguments()

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 try to resolve url for different modes

ExactMatch

Indicates if the whole url must match a route or if it should route as far as it can.

Declaration
public bool ExactMatch { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Default value is true

If set to false then if the routing is not an exact match will RemainingPath contain the unmatched part

MatchWildcardHost

Indicates if the wildcard host (if any) should be matched for hosts that does not match any specified host.

Declaration
public bool MatchWildcardHost { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Default value is false

Extension Methods