Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpUtility::JavaScriptStringEncode Method (String^, Boolean)

.NET Framework (current version)
 

Encodes a string.

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

public:
static String^ JavaScriptStringEncode(
	String^ value,
	bool addDoubleQuotes
)

Parameters

value
Type: System::String^

A string to encode.

addDoubleQuotes
Type: System::Boolean

A value that indicates whether double quotation marks will be included around the encoded string.

Return Value

Type: System::String^

An encoded string.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft