Struct Redirect
Represents MVC action result that redirects user to some URL
Implements
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Wave.Mvc
Assembly: Azos.Wave.dll
Syntax
public struct Redirect : IActionResult
Constructors
Redirect(String, WebConsts.RedirectCode)
Declaration
public Redirect(string url, WebConsts.RedirectCode code = WebConsts.RedirectCode.Found_302)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | |
WebConsts.RedirectCode | code |
Fields
Code
Redirect code
Declaration
public readonly WebConsts.RedirectCode Code
Field Value
Type | Description |
---|---|
WebConsts.RedirectCode |
URL
Where to redirect user
Declaration
public readonly string URL
Field Value
Type | Description |
---|---|
System.String |
Methods
Execute(Controller, WorkContext)
Declaration
public void Execute(Controller controller, WorkContext work)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | |
WorkContext | work |