ylbtech-.NETFramework-Web.Mvc:FileContentResult |
1.程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35返回顶部 |
1、
#region 程序集 System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35// c:\users\administrator\source\repos\WebApp7\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll#endregionnamespace System.Web.Mvc{ ???// ???// 摘要: ???// ????将二进制文件的内容发送到响应。 ???public class FileContentResult : FileResult ???{ ???????// ???????// 摘要: ???????// ????使用指定的文件内容和内容类型来初始化 System.Web.Mvc.FileContentResult 类的新实例。 ???????// ???????// 参数: ???????// ??fileContents: ???????// ????要发送到响应的字节数组。 ???????// ???????// ??contentType: ???????// ????要用于响应的内容类型。 ???????// ???????// 异常: ???????// ??T:System.ArgumentNullException: ???????// ????fileContents 参数为 null。 ???????public FileContentResult(byte[] fileContents, string contentType); ???????// ???????// 摘要: ???????// ????要发送到响应的二进制内容。 ???????// ???????// 返回结果: ???????// ????文件内容。 ???????public byte[] FileContents { get; } ???????// ???????// 摘要: ???????// ????将文件内容写入响应。 ???????// ???????// 参数: ???????// ??response: ???????// ????响应。 ???????protected override void WriteFile(HttpResponseBase response); ???}}
2、
| 作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
.NETFramework-Web.Mvc:FileContentResult
原文地址:https://www.cnblogs.com/storebook/p/9065129.html