3 instantiations of ContentResult
Microsoft.AspNetCore.Mvc.Core (1)
ControllerBase.cs (1)
287
return new
ContentResult
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
254
return new
ContentResult
PageModel.cs (1)
586
return new
ContentResult
41 references to ContentResult
Microsoft.AspNetCore.Mvc.Core (17)
ContentResult.cs (1)
35
var 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>
243
public 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>
254
public 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>
270
public 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>
285
public virtual
ContentResult
Content(string content, MediaTypeHeaderValue? contentType)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
245
services.TryAddSingleton<IActionResultExecutor<
ContentResult
>, ContentResultExecutor>();
Infrastructure\ContentResultExecutor.cs (3)
14
/// A <see cref="IActionResultExecutor{ContentResult}"/> that is responsible for <see cref="
ContentResult
"/>
16
public partial class ContentResultExecutor : IActionResultExecutor<
ContentResult
>
34
public 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>
213
public 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>
223
public 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>
238
public 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>
252
public 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>
545
public 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>
555
public 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>
570
public 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>
584
public virtual
ContentResult
Content(string content, MediaTypeHeaderValue? contentType)