Class UmbracoRouteValues
Represents the data required to route to a specific controller/action during an Umbraco request
Inheritance
System.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 | |
Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor | controllerActionDescriptor | |
System.String | templateName |
Fields
View SourceDefaultActionName
The default action name
Declaration
public const string DefaultActionName = "Index"
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceActionName
Gets the action name
Declaration
public string ActionName { get; }
Property Value
Type | Description |
---|---|
System.String |
ControllerActionDescriptor
Gets the Controller descriptor found for routing to
Declaration
public ControllerActionDescriptor ControllerActionDescriptor { get; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor |
ControllerName
Gets the controller name
Declaration
public string ControllerName { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.String |