Share via


HtmlHelperInputExtensions.TextArea 方法

定義

多載

TextArea(IHtmlHelper, String)

傳 < 回指定 expression 之 的 textarea > 元素。 根據中找到的第一個非 null 值,將內容新增至專案主體: ModelState 具有完整名稱的專案、 ViewData 具有完整名稱的專案,或 expression 針對 評估的專案 Model 。 如需有關「完整名稱」的詳細資訊,請參閱 Name(String)

TextArea(IHtmlHelper, String, Object)

傳 < 回指定 expression 之 的 textarea > 元素。 根據中找到的第一個非 null 值,將內容新增至專案主體: ModelState 具有完整名稱的專案、 ViewData 具有完整名稱的專案,或 expression 針對 評估的專案 Model 。 如需有關「完整名稱」的詳細資訊,請參閱 Name(String)

TextArea(IHtmlHelper, String, String)

傳 < 回指定 expression 之 的 textarea > 元素。 根據 中找到的第一個非 null 值,將內容新增至專案主體: ModelState 具有完整名稱的專案、 value 參數、 ViewData 具有完整名稱的專案,或 expression 針對 評估的 Model 。 如需有關「完整名稱」的詳細資訊,請參閱 Name(String)

TextArea(IHtmlHelper, String, String, Object)

傳 < 回指定 expression 之 的 textarea > 元素。 根據 中找到的第一個非 null 值,將內容新增至專案主體: ModelState 具有完整名稱的專案、 value 參數、 ViewData 具有完整名稱的專案,或 expression 針對 評估的 Model 。 如需有關「完整名稱」的詳細資訊,請參閱 Name(String)

TextArea(IHtmlHelper, String)

來源:
HtmlHelperInputExtensions.cs
來源:
HtmlHelperInputExtensions.cs

傳 < 回指定 expression 之 的 textarea > 元素。 根據中找到的第一個非 null 值,將內容新增至專案主體: ModelState 具有完整名稱的專案、 ViewData 具有完整名稱的專案,或 expression 針對 評估的專案 Model 。 如需有關「完整名稱」的詳細資訊,請參閱 Name(String)

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ TextArea(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ expression);
public static Microsoft.AspNetCore.Html.IHtmlContent TextArea (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression);
static member TextArea : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function TextArea (htmlHelper As IHtmlHelper, expression As String) As IHtmlContent

參數

htmlHelper
IHtmlHelper

IHtmlHelper這個方法擴充的實例。

expression
String

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

傳回

包含 textarea > 元素的新 。 IHtmlContent<

備註

HtmlFieldPrefix結合 和 expression 來設定 < textarea > 元素的 「name」 屬性。 expression清理以設定專案的 「id」 屬性。

適用於

TextArea(IHtmlHelper, String, Object)

來源:
HtmlHelperInputExtensions.cs
來源:
HtmlHelperInputExtensions.cs

傳 < 回指定 expression 之 的 textarea > 元素。 根據中找到的第一個非 null 值,將內容新增至專案主體: ModelState 具有完整名稱的專案、 ViewData 具有完整名稱的專案,或 expression 針對 評估的專案 Model 。 如需有關「完整名稱」的詳細資訊,請參閱 Name(String)

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ TextArea(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ expression, System::Object ^ htmlAttributes);
public static Microsoft.AspNetCore.Html.IHtmlContent TextArea (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object htmlAttributes);
static member TextArea : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function TextArea (htmlHelper As IHtmlHelper, expression As String, htmlAttributes As Object) As IHtmlContent

參數

htmlHelper
IHtmlHelper

IHtmlHelper這個方法擴充的實例。

expression
String

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

htmlAttributes
Object

Object,包含 專案的 HTML 屬性。 或者,包含 IDictionary<TKey,TValue> HTML 屬性的實例。

傳回

包含 textarea > 元素的新 。 IHtmlContent<

備註

HtmlFieldPrefix結合 和 expression 來設定 < textarea > 元素的 「name」 屬性。 expression清理以設定專案的 「id」 屬性。

適用於

TextArea(IHtmlHelper, String, String)

來源:
HtmlHelperInputExtensions.cs
來源:
HtmlHelperInputExtensions.cs

傳 < 回指定 expression 之 的 textarea > 元素。 根據 中找到的第一個非 null 值,將內容新增至專案主體: ModelState 具有完整名稱的專案、 value 參數、 ViewData 具有完整名稱的專案,或 expression 針對 評估的 Model 。 如需有關「完整名稱」的詳細資訊,請參閱 Name(String)

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ TextArea(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ expression, System::String ^ value);
public static Microsoft.AspNetCore.Html.IHtmlContent TextArea (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string value);
static member TextArea : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function TextArea (htmlHelper As IHtmlHelper, expression As String, value As String) As IHtmlContent

參數

htmlHelper
IHtmlHelper

IHtmlHelper這個方法擴充的實例。

expression
String

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

value
String

如果不是 null ,則為 要包含在 元素中的值。

傳回

包含 textarea > 元素的新 。 IHtmlContent<

備註

HtmlFieldPrefix結合 和 expression 來設定 < textarea > 元素的 「name」 屬性。 expression清理以設定專案的 「id」 屬性。

適用於

TextArea(IHtmlHelper, String, String, Object)

來源:
HtmlHelperInputExtensions.cs
來源:
HtmlHelperInputExtensions.cs

傳 < 回指定 expression 之 的 textarea > 元素。 根據 中找到的第一個非 null 值,將內容新增至專案主體: ModelState 具有完整名稱的專案、 value 參數、 ViewData 具有完整名稱的專案,或 expression 針對 評估的 Model 。 如需有關「完整名稱」的詳細資訊,請參閱 Name(String)

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ TextArea(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ expression, System::String ^ value, System::Object ^ htmlAttributes);
public static Microsoft.AspNetCore.Html.IHtmlContent TextArea (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string value, object htmlAttributes);
static member TextArea : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function TextArea (htmlHelper As IHtmlHelper, expression As String, value As String, htmlAttributes As Object) As IHtmlContent

參數

htmlHelper
IHtmlHelper

IHtmlHelper這個方法擴充的實例。

expression
String

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

value
String

如果不是 null ,則為 要包含在 元素中的值。

htmlAttributes
Object

Object,包含 專案的 HTML 屬性。 或者,包含 IDictionary<TKey,TValue> HTML 屬性的實例。

傳回

包含 textarea > 元素的新 。 IHtmlContent<

備註

HtmlFieldPrefix結合 和 expression 來設定 < textarea > 元素的 「name」 屬性。 expression清理以設定專案的 「id」 屬性。

適用於