LabelExtensions.Label 方法

定義

多載

Label(HtmlHelper, String)

傳回 HTML label 元素,以及由指定運算式表示之屬性的屬性名稱。

Label(HtmlHelper, String, IDictionary<String,Object>)

傳回 HTML label 元素,以及由指定運算式表示之屬性的屬性名稱。

Label(HtmlHelper, String, Object)

傳回 HTML label 元素,以及由指定運算式表示之屬性的屬性名稱。

Label(HtmlHelper, String, String)

傳回 HTML 標籤專案,以及使用標籤文字由指定運算式所表示之屬性的屬性名稱。

Label(HtmlHelper, String, String, IDictionary<String,Object>)

傳回 HTML label 元素,以及由指定運算式表示之屬性的屬性名稱。

Label(HtmlHelper, String, String, Object)

傳回 HTML label 元素,以及由指定運算式表示之屬性的屬性名稱。

Label(HtmlHelper, String)

傳回 HTML label 元素,以及由指定運算式表示之屬性的屬性名稱。

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression);
static member Label : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String) As MvcHtmlString

參數

html
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

expression
String

運算式,可識別要顯示的屬性。

傳回

HTML 標籤專案,以及運算式所表示之屬性的屬性名稱。

適用於

Label(HtmlHelper, String, IDictionary<String,Object>)

傳回 HTML label 元素,以及由指定運算式表示之屬性的屬性名稱。

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member Label : System.Web.Mvc.HtmlHelper * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

參數

html
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

expression
String

運算式,可識別要顯示的屬性。

htmlAttributes
IDictionary<String,Object>

物件,包含要針對項目設定的 HTML 屬性。

傳回

HTML 標籤專案,以及運算式所表示之屬性的屬性名稱。

適用於

Label(HtmlHelper, String, Object)

傳回 HTML label 元素,以及由指定運算式表示之屬性的屬性名稱。

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression, object htmlAttributes);
static member Label : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String, htmlAttributes As Object) As MvcHtmlString

參數

html
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

expression
String

運算式,可識別要顯示的屬性。

htmlAttributes
Object

物件,包含要針對項目設定的 HTML 屬性。

傳回

HTML 標籤專案,以及運算式所表示之屬性的屬性名稱。

適用於

Label(HtmlHelper, String, String)

傳回 HTML 標籤專案,以及使用標籤文字由指定運算式所表示之屬性的屬性名稱。

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression, string labelText);
static member Label : System.Web.Mvc.HtmlHelper * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String, labelText As String) As MvcHtmlString

參數

html
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

expression
String

運算式,可識別要顯示的屬性。

labelText
String

要顯示的標籤文字。

傳回

HTML 標籤專案,以及運算式所表示之屬性的屬性名稱。

適用於

Label(HtmlHelper, String, String, IDictionary<String,Object>)

傳回 HTML label 元素,以及由指定運算式表示之屬性的屬性名稱。

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression, string labelText, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member Label : System.Web.Mvc.HtmlHelper * string * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String, labelText As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

參數

html
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

expression
String

運算式,可識別要顯示的屬性。

labelText
String

標籤文字。

htmlAttributes
IDictionary<String,Object>

物件,包含要針對項目設定的 HTML 屬性。

傳回

HTML 標籤專案,以及運算式所表示之屬性的屬性名稱。

適用於

Label(HtmlHelper, String, String, Object)

傳回 HTML label 元素,以及由指定運算式表示之屬性的屬性名稱。

public static System.Web.Mvc.MvcHtmlString Label (this System.Web.Mvc.HtmlHelper html, string expression, string labelText, object htmlAttributes);
static member Label : System.Web.Mvc.HtmlHelper * string * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Label (html As HtmlHelper, expression As String, labelText As String, htmlAttributes As Object) As MvcHtmlString

參數

html
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

expression
String

運算式,可識別要顯示的屬性。

labelText
String

標籤文字。

htmlAttributes
Object

物件,包含要針對項目設定的 HTML 屬性。

傳回

HTML 標籤專案,以及運算式所表示之屬性的屬性名稱。

適用於