Freigeben über


DisplayTextExtensions Class

Provides a way to render object values as HTML.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.Html.DisplayTextExtensions

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class DisplayTextExtensions
public static class DisplayTextExtensions
[ExtensionAttribute]
public ref class DisplayTextExtensions abstract sealed

The DisplayTextExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member DisplayText Returns HTML markup for each property in the object that is represented by the specified expression.
Public methodStatic member DisplayTextFor<TModel, TResult> Returns HTML markup for each property in the object that is represented by the specified 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