HtmlHelper::GetUnobtrusiveValidationAttributes Method

 

Gets the collection of unobtrusive JavaScript validation attributes.

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

NameDescription
System_CAPS_pubmethodGetUnobtrusiveValidationAttributes(String^)

Gets the collection of unobtrusive JavaScript validation attributes using the specified HTML name attribute.

System_CAPS_pubmethodGetUnobtrusiveValidationAttributes(String^, ModelMetadata^)

Gets the collection of unobtrusive JavaScript validation attributes using the specified HTML name attribute and model metadata.

System_CAPS_warningWarning

On the first call, a collection of attributes is returned. Further calls (on the same field) return an empty collection.

Return to top

HtmlHelper::GetUnobtrusiveValidationAttributes Method (String^)

Gets the collection of unobtrusive JavaScript validation attributes using the specified HTML name attribute.

public:
IDictionary<String^, Object^>^ GetUnobtrusiveValidationAttributes(
	String^ name
)

Parameters

name
Type: System::String^

The HTML name attribute.

Return Value

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

The collection of unobtrusive JavaScript validation attributes.

System_CAPS_warningWarning

On the first call, a collection of attributes is returned. Further calls (on the same field) return an empty collection.

Return to top

HtmlHelper::GetUnobtrusiveValidationAttributes Method (String^, ModelMetadata^)

Gets the collection of unobtrusive JavaScript validation attributes using the specified HTML name attribute and model metadata.

public:
IDictionary<String^, Object^>^ GetUnobtrusiveValidationAttributes(
	String^ name,
	ModelMetadata^ metadata
)

Parameters

name
Type: System::String^

The HTML name attribute.

metadata
Type: System.Web.Mvc::ModelMetadata^

The model metadata.

Return Value

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

The collection of unobtrusive JavaScript validation attributes.

System_CAPS_warningWarning

On the first call, a collection of attributes is returned. Further calls (on the same field) return an empty collection.

Return to top
Show: