MultiPartWriter.BeginFile(String, String, String) 方法
定义
此方法将启动一个响应文件。This method begins a response file. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public:
abstract void BeginFile(System::String ^ url, System::String ^ contentType, System::String ^ charset);
public abstract void BeginFile (string url, string contentType, string charset);
abstract member BeginFile : string * string * string -> unit
Public MustOverride Sub BeginFile (url As String, contentType As String, charset As String)
参数
- url
- String
文件的唯一 URL。The unique URL for the file.
- contentType
- String
文件的 MIME 类型。The MIME type of the file.
- charset
- String
文件使用的字符集(通常与 Charset 相同)。The character set used for the file (usually, the same as Charset).
注解
页面适配器必须在呈现页面之前调用此方法,但在调用方法之后 BeginResponse 。The page adapter must call this method before rendering the page, but after calling the BeginResponse method. 如果多次调用方法,将引发异常 BeginFile 。An exception is raised if the BeginFile method is called more than once.