共用方式為


ViewPage.SetTextWriter(TextWriter) 方法

定義

警告

The TextWriter is now provided by the ViewContext object passed to the RenderView method.

注意:此 API 現在已過時。設定用來將檢視轉譯為回應的文字寫入器。

[System.Obsolete("The TextWriter is now provided by the ViewContext object passed to the RenderView method.", true)]
public void SetTextWriter (System.IO.TextWriter textWriter);
member this.SetTextWriter : System.IO.TextWriter -> unit
Public Sub SetTextWriter (textWriter As TextWriter)

參數

textWriter
TextWriter

用來將檢視呈現至回應的寫入器。

屬性

適用於