LabelExtensions::LabelForModel Method

 

Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text.

Namespace:   System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticLabelForModel(HtmlHelper^)

Returns an HTML label element and the property name of the property that is represented by the model.

System_CAPS_pubmethodSystem_CAPS_staticLabelForModel(HtmlHelper^, IDictionary<String^, Object^>^)

Returns an HTML label element and the property name of the property that is represented by the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticLabelForModel(HtmlHelper^, Object^)

Returns an HTML label element and the property name of the property that is represented by the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticLabelForModel(HtmlHelper^, String^)

Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text.

System_CAPS_pubmethodSystem_CAPS_staticLabelForModel(HtmlHelper^, String^, IDictionary<String^, Object^>^)

Returns an HTML label element and the property name of the property that is represented by the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticLabelForModel(HtmlHelper^, String^, Object^)

Returns an HTML label element and the property name of the property that is represented by the specified expression.

Return to top

LabelExtensions::LabelForModel Method (HtmlHelper^)

Returns an HTML label element and the property name of the property that is represented by the model.

public:
[ExtensionAttribute]
static MvcHtmlString^ LabelForModel(
	HtmlHelper^ html
)

Parameters

html
Type: System.Web.Mvc::HtmlHelper^

The HTML helper instance that this method extends.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An HTML label element and the property name of the property that is represented by the model.

Return to top

LabelExtensions::LabelForModel Method (HtmlHelper^, IDictionary<String^, Object^>^)

Returns an HTML label element and the property name of the property that is represented by the specified expression.

public:
[ExtensionAttribute]
static MvcHtmlString^ LabelForModel(
	HtmlHelper^ html,
	IDictionary<String^, Object^>^ htmlAttributes
)

Parameters

html
Type: System.Web.Mvc::HtmlHelper^

The HTML helper instance that this method extends.

htmlAttributes
Type: System.Collections.Generic::IDictionary<String^, Object^>^

An object that contains the HTML attributes to set for the element.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An HTML label element and the property name of the property that is represented by the expression.

Return to top

LabelExtensions::LabelForModel Method (HtmlHelper^, Object^)

Returns an HTML label element and the property name of the property that is represented by the specified expression.

public:
[ExtensionAttribute]
static MvcHtmlString^ LabelForModel(
	HtmlHelper^ html,
	Object^ htmlAttributes
)

Parameters

html
Type: System.Web.Mvc::HtmlHelper^

The HTML helper instance that this method extends.

htmlAttributes
Type: System::Object^

An object that contains the HTML attributes to set for the element.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An HTML label element and the property name of the property that is represented by the expression.

Return to top

LabelExtensions::LabelForModel Method (HtmlHelper^, String^)

Returns an HTML label element and the property name of the property that is represented by the specified expression using the label text.

public:
[ExtensionAttribute]
static MvcHtmlString^ LabelForModel(
	HtmlHelper^ html,
	String^ labelText
)

Parameters

html
Type: System.Web.Mvc::HtmlHelper^

The HTML helper instance that this method extends.

labelText
Type: System::String^

The label text to display.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An HTML label element and the property name of the property that is represented by the expression.

Return to top

LabelExtensions::LabelForModel Method (HtmlHelper^, String^, IDictionary<String^, Object^>^)

Returns an HTML label element and the property name of the property that is represented by the specified expression.

public:
[ExtensionAttribute]
static MvcHtmlString^ LabelForModel(
	HtmlHelper^ html,
	String^ labelText,
	IDictionary<String^, Object^>^ htmlAttributes
)

Parameters

html
Type: System.Web.Mvc::HtmlHelper^

The HTML helper instance that this method extends.

labelText
Type: System::String^

The label Text.

htmlAttributes
Type: System.Collections.Generic::IDictionary<String^, Object^>^

An object that contains the HTML attributes to set for the element.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An HTML label element and the property name of the property that is represented by the expression.

Return to top

LabelExtensions::LabelForModel Method (HtmlHelper^, String^, Object^)

Returns an HTML label element and the property name of the property that is represented by the specified expression.

public:
[ExtensionAttribute]
static MvcHtmlString^ LabelForModel(
	HtmlHelper^ html,
	String^ labelText,
	Object^ htmlAttributes
)

Parameters

html
Type: System.Web.Mvc::HtmlHelper^

The HTML helper instance that this method extends.

labelText
Type: System::String^

The label text.

htmlAttributes
Type: System::Object^

An object that contains the HTML attributes to set for the element.

Return Value

Type: System.Web.Mvc::MvcHtmlString^

An HTML label element and the property name of the property that is represented by the expression.

Return to top
Show: