UrlActionContext Class

Definition

Context object to be used for the URLs that Action(UrlActionContext) generates.

C#
public class UrlActionContext
Inheritance
UrlActionContext

Constructors

Properties

Action

The name of the action method that Action(UrlActionContext) uses to generate URLs.

Controller

The name of the controller that Action(UrlActionContext) uses to generate URLs.

Fragment

The fragment for the URLs that Action(UrlActionContext) generates.

Host

The host name for the URLs that Action(UrlActionContext) generates.

Protocol

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

Values

The object that contains the route values that Action(UrlActionContext) 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