Class RedirectToContentResult
An Microsoft.
Inheritance
System.Object
RedirectToContentResult
Implements
Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult
Microsoft.AspNetCore.Mvc.IActionResult
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNetCore.Mvc.dll
Version: 12.0.3Syntax
public class RedirectToContentResult : ActionResult, IKeepTempDataResult, IActionResult
Constructors
RedirectToContentResult(ContentReference, String, String)
Initializes a new instance of the Redirect
Declaration
public RedirectToContentResult(ContentReference contentLink, string actionName, string language)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link |
System. |
actionName | The name of the action to use for generating the URL. |
System. |
language | The language |
Properties
ActionName
Gets or sets the name of the action to use for generating the URL.
Declaration
public string ActionName { get; set; }
Property Value
Type | Description |
---|---|
System. |
ContentLink
Gets or sets the content link.
Declaration
public ContentReference ContentLink { get; set; }
Property Value
Type | Description |
---|---|
Content |
Language
Gets or sets the language.
Declaration
public string Language { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
ExecuteResultAsync(ActionContext)
Declaration
public override Task ExecuteResultAsync(ActionContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
context |
Returns
Type | Description |
---|---|
System. |
Implements
Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult
Microsoft.AspNetCore.Mvc.IActionResult