Class RedirectToUmbracoPageResult
Redirects to an Umbraco page by Id or Entity
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Website.ActionResults
Assembly: Umbraco.Web.Website.dll
Syntax
public class RedirectToUmbracoPageResult : IKeepTempDataResult, IActionResult
Constructors
View SourceRedirectToUmbracoPageResult(Guid, QueryString, IPublishedUrlProvider, IUmbracoContextAccessor)
Initializes a new instance of the RedirectToUmbracoPageResult class.
Declaration
public RedirectToUmbracoPageResult(Guid key, QueryString queryString, IPublishedUrlProvider publishedUrlProvider, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
Guid | key | |
Microsoft.AspNetCore.Http.QueryString | queryString | |
IPublishedUrlProvider | publishedUrlProvider | |
IUmbracoContextAccessor | umbracoContextAccessor |
RedirectToUmbracoPageResult(Guid, IPublishedUrlProvider, IUmbracoContextAccessor)
Initializes a new instance of the RedirectToUmbracoPageResult class.
Declaration
public RedirectToUmbracoPageResult(Guid key, IPublishedUrlProvider publishedUrlProvider, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
Guid | key | |
IPublishedUrlProvider | publishedUrlProvider | |
IUmbracoContextAccessor | umbracoContextAccessor |
RedirectToUmbracoPageResult(IPublishedContent, QueryString, IPublishedUrlProvider, IUmbracoContextAccessor)
Initializes a new instance of the RedirectToUmbracoPageResult class.
Declaration
public RedirectToUmbracoPageResult(IPublishedContent publishedContent, QueryString queryString, IPublishedUrlProvider publishedUrlProvider, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
IPublishedContent | publishedContent | |
Microsoft.AspNetCore.Http.QueryString | queryString | |
IPublishedUrlProvider | publishedUrlProvider | |
IUmbracoContextAccessor | umbracoContextAccessor |
RedirectToUmbracoPageResult(IPublishedContent, IPublishedUrlProvider, IUmbracoContextAccessor)
Initializes a new instance of the RedirectToUmbracoPageResult class.
Declaration
public RedirectToUmbracoPageResult(IPublishedContent publishedContent, IPublishedUrlProvider publishedUrlProvider, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
IPublishedContent | publishedContent | |
IPublishedUrlProvider | publishedUrlProvider | |
IUmbracoContextAccessor | umbracoContextAccessor |
Properties
View SourceKey
Declaration
public Guid Key { get; }
Property Value
Type | Description |
---|---|
Guid |
Methods
View SourceExecuteResultAsync(ActionContext)
Declaration
public Task ExecuteResultAsync(ActionContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.ActionContext | context |
Returns
Type | Description |
---|---|
Task |