HttpUtility.JavaScriptStringEncode メソッド

定義

文字列をエンコードします。

オーバーロード

JavaScriptStringEncode(String)

文字列をエンコードします。

JavaScriptStringEncode(String, Boolean)

文字列をエンコードします。

注釈

このメソッドは文字列をエンコードします。 たとえば、単一引用符と二重引用符は、エンコードされた文字列に と として\'\"含まれます。

JavaScriptStringEncode(String)

Source:
HttpUtility.cs
Source:
HttpUtility.cs
Source:
HttpUtility.cs

文字列をエンコードします。

public:
 static System::String ^ JavaScriptStringEncode(System::String ^ value);
public static string JavaScriptStringEncode (string? value);
public static string JavaScriptStringEncode (string value);
static member JavaScriptStringEncode : string -> string
Public Shared Function JavaScriptStringEncode (value As String) As String

パラメーター

value
String

エンコードする文字列。

戻り値

エンコードされた文字列。

適用対象

JavaScriptStringEncode(String, Boolean)

Source:
HttpUtility.cs
Source:
HttpUtility.cs
Source:
HttpUtility.cs

文字列をエンコードします。

public:
 static System::String ^ JavaScriptStringEncode(System::String ^ value, bool addDoubleQuotes);
public static string JavaScriptStringEncode (string? value, bool addDoubleQuotes);
public static string JavaScriptStringEncode (string value, bool addDoubleQuotes);
static member JavaScriptStringEncode : string * bool -> string
Public Shared Function JavaScriptStringEncode (value As String, addDoubleQuotes As Boolean) As String

パラメーター

value
String

エンコードする文字列。

addDoubleQuotes
Boolean

エンコードされた文字列を囲む二重引用符が含まれるかどうかを示す値。

戻り値

エンコードされた文字列。

適用対象