13 instantiations of RedirectResult
Microsoft.AspNetCore.Mvc.Core (5)
ControllerBase.cs (4)
332return new RedirectResult(url); 346return new RedirectResult(url, permanent: true); 361return new RedirectResult(url: url, permanent: false, preserveMethod: true); 376return new RedirectResult(url: url, permanent: true, preserveMethod: true);
RequireHttpsAttribute.cs (1)
98filterContext.Result = new RedirectResult(newUrl, permanentValue);
Microsoft.AspNetCore.Mvc.RazorPages (8)
PageBase.cs (4)
492return new RedirectResult(url); 505return new RedirectResult(url, permanent: true); 519return new RedirectResult(url: url, permanent: false, preserveMethod: true); 533return new RedirectResult(url: url, permanent: true, preserveMethod: true);
PageModel.cs (4)
821return new RedirectResult(url); 834return new RedirectResult(url, permanent: true); 848return new RedirectResult(url: url, permanent: false, preserveMethod: true); 862return new RedirectResult(url: url, permanent: true, preserveMethod: true);
59 references to RedirectResult
Microsoft.AspNetCore.Mvc.Core (25)
ControllerBase.cs (17)
322/// Creates a <see cref="RedirectResult"/> object that redirects (<see cref="StatusCodes.Status302Found"/>) 326/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 328public virtual RedirectResult Redirect([StringSyntax(StringSyntaxAttribute.Uri)] string url) 336/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to true 340/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 342public virtual RedirectResult RedirectPermanent([StringSyntax(StringSyntaxAttribute.Uri)] string url) 350/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to false 351/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>) 355/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 357public virtual RedirectResult RedirectPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri)] string url) 365/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to true 366/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>) 370/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 372public virtual RedirectResult RedirectPermanentPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri)] string url)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
240services.TryAddSingleton<IActionResultExecutor<RedirectResult>, RedirectResultExecutor>();
Infrastructure\RedirectResultExecutor.cs (3)
11/// A <see cref="IActionResultExecutor{VirtualFileResult}"/> for <see cref="RedirectResult"/>. 13public partial class RedirectResultExecutor : IActionResultExecutor<RedirectResult> 33public virtual Task ExecuteAsync(ActionContext context, RedirectResult result)
RedirectResult.cs (4)
20/// Initializes a new instance of the <see cref="RedirectResult"/> class with the values 31/// Initializes a new instance of the <see cref="RedirectResult"/> class with the values 42/// Initializes a new instance of the <see cref="RedirectResult"/> class with the values 93var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<RedirectResult>>();
Microsoft.AspNetCore.Mvc.RazorPages (34)
PageBase.cs (17)
484/// Creates a <see cref="RedirectResult"/> object that redirects to the specified <paramref name="url"/>. 487/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 488public virtual RedirectResult Redirect([StringSyntax(StringSyntaxAttribute.Uri)] string url) 496/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to true 500/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 501public virtual RedirectResult RedirectPermanent([StringSyntax(StringSyntaxAttribute.Uri)] string url) 509/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to false 510/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>) 514/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 515public virtual RedirectResult RedirectPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri)] string url) 523/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to true 524/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>) 528/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 529public virtual RedirectResult RedirectPermanentPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri)] string url)
PageModel.cs (17)
812/// Creates a <see cref="RedirectResult"/> object that redirects (<see cref="StatusCodes.Status302Found"/>) 816/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 817protected internal RedirectResult Redirect([StringSyntax(StringSyntaxAttribute.Uri)] string url) 825/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to true 829/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 830public virtual RedirectResult RedirectPermanent([StringSyntax(StringSyntaxAttribute.Uri)] string url) 838/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to false 839/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status307TemporaryRedirect"/>) 843/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 844public virtual RedirectResult RedirectPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri)] string url) 852/// Creates a <see cref="RedirectResult"/> object with <see cref="RedirectResult.Permanent"/> set to true 853/// and <see cref="RedirectResult.PreserveMethod"/> set to true (<see cref="StatusCodes.Status308PermanentRedirect"/>) 857/// <returns>The created <see cref="RedirectResult"/> for the response.</returns> 858public virtual RedirectResult RedirectPermanentPreserveMethod([StringSyntax(StringSyntaxAttribute.Uri)] string url)