3 instantiations of ContentResult
Microsoft.AspNetCore.Mvc.Core (1)
ControllerBase.cs (1)
287return new ContentResult
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
254return new ContentResult
PageModel.cs (1)
586return new ContentResult
41 references to ContentResult
Microsoft.AspNetCore.Mvc.Core (17)
ContentResult.cs (1)
35var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<ContentResult>>();
ControllerBase.cs (12)
238/// Creates a <see cref="ContentResult"/> object by specifying a <paramref name="content"/> string. 241/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 243public virtual ContentResult Content(string content) 247/// Creates a <see cref="ContentResult"/> object by specifying a 252/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 254public virtual ContentResult Content(string content, string contentType) 258/// Creates a <see cref="ContentResult"/> object by specifying a 264/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 270public virtual ContentResult Content(string content, string contentType, Encoding contentEncoding) 278/// Creates a <see cref="ContentResult"/> object by specifying a 283/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 285public virtual ContentResult Content(string content, MediaTypeHeaderValue? contentType)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
245services.TryAddSingleton<IActionResultExecutor<ContentResult>, ContentResultExecutor>();
Infrastructure\ContentResultExecutor.cs (3)
14/// A <see cref="IActionResultExecutor{ContentResult}"/> that is responsible for <see cref="ContentResult"/> 16public partial class ContentResultExecutor : IActionResultExecutor<ContentResult> 34public virtual async Task ExecuteAsync(ActionContext context, ContentResult result)
Microsoft.AspNetCore.Mvc.RazorPages (24)
PageBase.cs (12)
208/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a 212/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 213public virtual ContentResult Content(string content) 217/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a 222/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 223public virtual ContentResult Content(string content, string contentType) 227/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a 233/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 238public virtual ContentResult Content(string content, string contentType, Encoding contentEncoding) 246/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a 251/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 252public virtual ContentResult Content(string content, MediaTypeHeaderValue? contentType)
PageModel.cs (12)
540/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a 544/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 545public virtual ContentResult Content(string content) 549/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a 554/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 555public virtual ContentResult Content(string content, string contentType) 559/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a 565/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 570public virtual ContentResult Content(string content, string contentType, Encoding contentEncoding) 578/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a 583/// <returns>The created <see cref="ContentResult"/> object for the response.</returns> 584public virtual ContentResult Content(string content, MediaTypeHeaderValue? contentType)