View Source
Redirects to an Umbraco page by Id or Entity
Inheritance
System.Object
Assembly: Umbraco.Web.Website.dll
public class RedirectToUmbracoPageResult : IKeepTempDataResult
Constructors
View Source
Declaration
public RedirectToUmbracoPageResult(Guid key, IPublishedUrlProvider publishedUrlProvider, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type |
Name |
Description |
Guid |
key |
|
IPublishedUrlProvider |
publishedUrlProvider |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
View Source
Declaration
public RedirectToUmbracoPageResult(Guid key, QueryString queryString, IPublishedUrlProvider publishedUrlProvider, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type |
Name |
Description |
Guid |
key |
|
QueryString |
queryString |
|
IPublishedUrlProvider |
publishedUrlProvider |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
View Source
Declaration
public RedirectToUmbracoPageResult(IPublishedContent? publishedContent, IPublishedUrlProvider publishedUrlProvider, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type |
Name |
Description |
System.Nullable<IPublishedContent> |
publishedContent |
|
IPublishedUrlProvider |
publishedUrlProvider |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
View Source
Declaration
public RedirectToUmbracoPageResult(IPublishedContent? publishedContent, QueryString queryString, IPublishedUrlProvider publishedUrlProvider, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type |
Name |
Description |
System.Nullable<IPublishedContent> |
publishedContent |
|
QueryString |
queryString |
|
IPublishedUrlProvider |
publishedUrlProvider |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
Properties
View Source
Declaration
Property Value
Methods
View Source
Declaration
public Task ExecuteResultAsync(ActionContext context)
Parameters
Type |
Name |
Description |
ActionContext |
context |
|
Returns