Class UmbracoRouteValues
Represents the data required to route to a specific controller/action during an Umbraco request
Inheritance
object
Namespace: Umbraco.Cms.Web.Common.Routing
Assembly: Umbraco.Web.Common.dll
Syntax
public class UmbracoRouteValues
Constructors
View SourceUmbracoRouteValues(IPublishedRequest, ControllerActionDescriptor, string?)
Initializes a new instance of the UmbracoRouteValues class.
Declaration
public UmbracoRouteValues(IPublishedRequest publishedRequest, ControllerActionDescriptor controllerActionDescriptor, string? templateName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedRequest | publishedRequest | |
| ControllerActionDescriptor | controllerActionDescriptor | |
| string | templateName |
Fields
View SourceDefaultActionName
The default action name
Declaration
public const string DefaultActionName = "Index"
Field Value
| Type | Description |
|---|---|
| string |
Properties
View SourceActionName
Gets the action name
Declaration
public string ActionName { get; }
Property Value
| Type | Description |
|---|---|
| string |
ControllerActionDescriptor
Gets the Controller descriptor found for routing to
Declaration
public ControllerActionDescriptor ControllerActionDescriptor { get; }
Property Value
| Type | Description |
|---|---|
| ControllerActionDescriptor |
ControllerName
Gets the controller name
Declaration
public string ControllerName { get; }
Property Value
| Type | Description |
|---|---|
| string |
ControllerType
Gets the controller type
Declaration
public Type ControllerType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
PublishedRequest
Gets the IPublishedRequest
Declaration
public IPublishedRequest PublishedRequest { get; }
Property Value
| Type | Description |
|---|---|
| IPublishedRequest |
TemplateName
Gets the template name
Declaration
public string? TemplateName { get; }
Property Value
| Type | Description |
|---|---|
| string |