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 | |
---|---|---|
Id | Gets the ID of the HtmlHelper string. | |
IdFor<TModel, TProperty> | Gets the ID of the HtmlHelper<TModel> string | |
IdForModel | Gets the ID of the HtmlHelper string. | |
Name | Gets the full HTML field name for the object that is represented by the expression. | |
NameFor<TModel, TProperty> | Gets the full HTML field name for the object that is represented by the expression. | |
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.