HttpUtility.EcmaScriptStringLiteralEncode Method (String, TextWriter)

Retrieves an encoded version of the specified JavaScript string and appends it to the specified output stream.

Namespace:  Microsoft.SharePoint.Client.Utilities
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Shared Sub EcmaScriptStringLiteralEncode ( _
    scriptLiteralToEncode As String, _
    output As TextWriter _
)
'Usage
Dim scriptLiteralToEncode As String
Dim output As TextWriterHttpUtility.EcmaScriptStringLiteralEncode(scriptLiteralToEncode, _
    output)
public static void EcmaScriptStringLiteralEncode(
    string scriptLiteralToEncode,
    TextWriter output
)

Parameters

  • scriptLiteralToEncode
    Type: System.String

    A String representation of the JavaScript string to encode.

Remarks

Ecma International develops standards for information and communication systems. For more information, visit http://www.ecma-international.org/.

See Also

Reference

HttpUtility Class

HttpUtility Members

EcmaScriptStringLiteralEncode Overload

Microsoft.SharePoint.Client.Utilities Namespace