View Source
Redirects to an Umbraco page by Id or Entity
Inheritance
System.Object
Assembly: Umbraco.Web.dll
public class RedirectToUmbracoPageResult : ActionResult
Constructors
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(Guid key)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(Guid key, NameValueCollection queryStringValues)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
System.Collections.Specialized.NameValueCollection |
queryStringValues |
|
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(Guid key, NameValueCollection queryStringValues, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
System.Collections.Specialized.NameValueCollection |
queryStringValues |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(Guid key, string queryString)
Parameters
Type |
Name |
Description |
System.Guid |
key |
|
System.String |
queryString |
|
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(Guid key, string queryString, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(Guid key, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(int pageId)
Parameters
Type |
Name |
Description |
System.Int32 |
pageId |
|
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(int pageId, NameValueCollection queryStringValues)
Parameters
Type |
Name |
Description |
System.Int32 |
pageId |
|
System.Collections.Specialized.NameValueCollection |
queryStringValues |
|
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(int pageId, NameValueCollection queryStringValues, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type |
Name |
Description |
System.Int32 |
pageId |
|
System.Collections.Specialized.NameValueCollection |
queryStringValues |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(int pageId, string queryString)
Parameters
Type |
Name |
Description |
System.Int32 |
pageId |
|
System.String |
queryString |
|
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(int pageId, string queryString, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(int pageId, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(IPublishedContent publishedContent)
Parameters
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(IPublishedContent publishedContent, NameValueCollection queryStringValues)
Parameters
Type |
Name |
Description |
IPublishedContent |
publishedContent |
|
System.Collections.Specialized.NameValueCollection |
queryStringValues |
|
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(IPublishedContent publishedContent, NameValueCollection queryStringValues, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(IPublishedContent publishedContent, string queryString)
Parameters
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(IPublishedContent publishedContent, string queryString, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
View Source
Creates a new RedirectToUmbracoResult
Declaration
public RedirectToUmbracoPageResult(IPublishedContent publishedContent, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Properties
View Source
Declaration
Property Value
Type |
Description |
System.Guid |
|
View Source
Declaration
public int PageId { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
Declaration
public IPublishedContent PublishedContent { get; }
Property Value
View Source
Declaration
public string Url { get; }
Property Value
Type |
Description |
System.String |
|
Methods
View Source
Declaration
public override void ExecuteResult(ControllerContext context)
Parameters
Type |
Name |
Description |
ControllerContext |
context |
|