HtmlHelperExtensions..::..Attribute Method

Attributes the specified name.

Namespace:  MichaelBrandonMorris.Extensions.WebExtensions
Assembly:  MichaelBrandonMorris.Extensions.WebExtensions (in MichaelBrandonMorris.Extensions.WebExtensions.dll)

Syntax


public static MvcHtmlString Attribute(
	HtmlHelper helper,
	string name,
	string value,
	Nullable<bool> condition
)
Public Shared Function Attribute ( _
	helper As HtmlHelper, _
	name As String, _
	value As String, _
	condition As Nullable(Of Boolean) _
) As MvcHtmlString
public:
static MvcHtmlString^ Attribute(
	HtmlHelper^ helper, 
	String^ name, 
	String^ value, 
	Nullable<bool^> condition
)

Parameters

helper
Type: HtmlHelper
The helper.
name
Type: String
The name.
value
Type: String
The value.
condition
Type: Nullable<(Of <(<'Boolean>)>)>
if set to true [condition].

Return Value

MvcHtmlString.