| Ylbtech-.netframework-web.mvc:fileresult |
| 1. Assembly SYSTEM.WEB.MVC, version=5.2.3.0, culture=neutral, publickeytoken=31bf3856ad364e35 back to top |
1.
#regionAssembly 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#endregionnamespacesystem.web.mvc{// //Summary://represents a base class that is used to send the contents of a binary file to a response. Public Abstract classFileresult:actionresult {// //Summary://Initializes a new instance of the System.Web.Mvc.FileResult class. // //Parameters://ContentType://the type of content. // //Exception://T:System.ArgumentException://The contentType parameter is null or empty. protectedFileresult (stringContentType); // //Summary://Gets the content type used for the response. // //return Result://the type of content. Public stringContentType {Get; } // //Summary://Gets or sets the content disposition header that contains the specified file name when the File Download dialog box is displayed in the browser. // //return Result://file name. Public stringFiledownloadname {Get;Set; } // //Summary://enables processing of the result of an action method by using a custom type that inherits from the System.Web.Mvc.ActionResult class. // //Parameters://Context://the context in which the result was executed. // //Exception://T:System.ArgumentNullException://the context parameter is null. Public Override voidExecuteresult (controllercontext context); // //Summary://writes a file to a response. // //Parameters://Response://Response. protected Abstract voidWriteFile (httpresponsebase response); }}2.
|
Ylbtech Source: http://ylbtech.cnblogs.com/ This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility. |
. Netframework-web.mvc:fileresult