MultiPartWriter.BeginFile(String, String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
這個方法會建立回應檔 (Response File)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 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。
- contentType
- String
檔案的 MIME 類型。
備註
頁面配接器必須在轉譯頁面之前呼叫這個方法,但在呼叫 BeginResponse 方法之後。 如果呼叫 方法多次, BeginFile 就會引發例外狀況。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應