Encodes a string to be represented as a string literal. The format is essentially a JSON string. The string returned includes outer quotes.

Namespace: MonoSoftware.Web
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static string EncodeStringQuoted(
	string s
)
Visual Basic
Public Shared Function EncodeStringQuoted ( 
	s As String
) As String
Visual C++
public:
static String^ EncodeStringQuoted(
	String^ s
)
F#
static member EncodeStringQuoted : 
        s : string -> string 

Parameters

s
Type: System..::..String
String to encode

Return Value

Type: String
Encoded string

See Also