MvcHtmlString Constructor

Note: This API is now obsolete.

Initializes a new instance of the MvcHtmlString class.

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

Syntax

'Declaration
<ObsoleteAttribute("The recommended alternative is the static MvcHtmlString.Create(String value) method.")> _
Protected Sub New ( _
    value As String _
)
[ObsoleteAttribute("The recommended alternative is the static MvcHtmlString.Create(String value) method.")]
protected MvcHtmlString(
    string value
)
[ObsoleteAttribute(L"The recommended alternative is the static MvcHtmlString.Create(String value) method.")]
protected:
MvcHtmlString(
    String^ value
)

Parameters

  • value
    Type: System.String
    The string to create. If no value is assigned, the object is created using an empty-string value.

See Also

Reference

MvcHtmlString Class

System.Web.Mvc Namespace