UrlRouteContext Class

Definition

Context object to be used for the URLs that RouteUrl(UrlRouteContext) generates.

C#
public class UrlRouteContext
Inheritance
UrlRouteContext

Constructors

Properties

Fragment

The fragment for the URLs that RouteUrl(UrlRouteContext) generates.

Host

The host name for the URLs that RouteUrl(UrlRouteContext) generates.

Protocol

The protocol for the URLs that RouteUrl(UrlRouteContext) generates, such as "http" or "https"

RouteName

The name of the route that RouteUrl(UrlRouteContext) uses to generate URLs.

Values

The object that contains the route values that RouteUrl(UrlRouteContext) uses to generate URLs.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0