11 instantiations of FileContentResult
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.Mvc.Core (6)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages (2)
45 references to FileContentResult
Microsoft.AspNetCore.Mvc.Core (24)
ControllerBase.cs (16)
1072/// <returns>The created <see cref="FileContentResult"/> for the response.</returns>
1074public virtual FileContentResult File(byte[] fileContents, string contentType)
1086/// <returns>The created <see cref="FileContentResult"/> for the response.</returns>
1088public virtual FileContentResult File(byte[] fileContents, string contentType, bool enableRangeProcessing)
1100/// <returns>The created <see cref="FileContentResult"/> for the response.</returns>
1102public virtual FileContentResult File(byte[] fileContents, string contentType, string? fileDownloadName)
1115/// <returns>The created <see cref="FileContentResult"/> for the response.</returns>
1117public virtual FileContentResult File(byte[] fileContents, string contentType, string? fileDownloadName, bool enableRangeProcessing)
1134/// <returns>The created <see cref="FileContentResult"/> for the response.</returns>
1136public virtual FileContentResult File(byte[] fileContents, string contentType, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag)
1156/// <returns>The created <see cref="FileContentResult"/> for the response.</returns>
1158public virtual FileContentResult File(byte[] fileContents, string contentType, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag, bool enableRangeProcessing)
1179/// <returns>The created <see cref="FileContentResult"/> for the response.</returns>
1181public virtual FileContentResult File(byte[] fileContents, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag)
1203/// <returns>The created <see cref="FileContentResult"/> for the response.</returns>
1205public virtual FileContentResult File(byte[] fileContents, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag, bool enableRangeProcessing)
Microsoft.AspNetCore.Mvc.Core.Test (7)
ControllerBaseTest.cs (5)
1670var result = controller.File(fileContents, "application/pdf");
1688var result = controller.File(fileContents, "application/pdf", true);
1712var result = controller.File(fileContents, "application/pdf", lastModified, entityTag, enableRangeProcessing);
1732var result = controller.File(fileContents, "application/pdf", "someDownloadName");
1756var result = controller.File(fileContents, "application/pdf", "someDownloadName", lastModified, entityTag, enableRangeProcessing);
Microsoft.AspNetCore.Mvc.RazorPages (8)
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)