Partager via


AjaxHelper.JavaScriptStringEncode Method

Serializes the specified message and returns the resulting JSON-formatted string.

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

Syntax

'Declaration
Public Function JavaScriptStringEncode ( _
    message As String _
) As String
public string JavaScriptStringEncode(
    string message
)
public:
String^ JavaScriptStringEncode(
    String^ message
)

Parameters

Return Value

Type: System.String
The serialized message as a JSON-formatted string.

See Also

Reference

AjaxHelper Class

System.Web.Mvc Namespace