共用方式為


DefaultHtmlGenerator.GenerateTextArea 方法

定義

<產生 textarea > 元素

public:
 virtual Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateTextArea(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, int rows, int columns, System::Object ^ htmlAttributes);
public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateTextArea (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, int rows, int columns, object htmlAttributes);
abstract member GenerateTextArea : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * int * int * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
override this.GenerateTextArea : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * int * int * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Public Overridable Function GenerateTextArea (viewContext As ViewContext, modelExplorer As ModelExplorer, expression As String, rows As Integer, columns As Integer, htmlAttributes As Object) As TagBuilder

參數

viewContext
ViewContext

ViewContext目前範圍的實例。

modelExplorer
ModelExplorer

ModelExplorerexpression

expression
String

相對於目前模型的運算式名稱。

rows
Int32
columns
Int32
htmlAttributes
Object

Object,包含路由的參數。 參數會透過反映來擷取,方法是檢查 的屬性 Object 。 這 Object 通常是使用 Object 初始化運算式語法所建立。 或者, IDictionary<TKey,TValue> 包含路由參數的實例。

傳回

實作

適用於