NameExtensions Class

Gets the HTML ID and name attributes of the HtmlHelper string.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.Html.NameExtensions

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class NameExtensions
'Usage
public static class NameExtensions
[ExtensionAttribute]
public ref class NameExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type NameExtensions =  class end
public final class NameExtensions

The NameExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member Id Gets the ID of the HtmlHelper string.
Public methodStatic member IdFor<TModel, TProperty> Gets the ID of the HtmlHelper<TModel> string
Public methodStatic member IdForModel Gets the ID of the HtmlHelper string.
Public methodStatic member Name Gets the full HTML field name for the object that is represented by the expression.
Public methodStatic member NameFor<TModel, TProperty> Gets the full HTML field name for the object that is represented by the expression.
Public methodStatic member NameForModel Gets the full HTML field name for the object that is represented by the expression.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Mvc.Html Namespace