搜尋結果
包含使用 JScript 語言支援編譯和程式碼產生的類別。 ... 我們不再支援此瀏覽器。 升級至 Microsoft Edge 以善用最新功能、安全性更新和技術支援。
- Definition
- Encode(ReadOnlySpan , JavaScriptEncoder)
- Encode(ReadOnlySpan , JavaScriptEncoder)
- Encode(String, JavaScriptEncoder)
Encodes a UTF-8 text value as a JSON string. Public Shared Function Encode (utf8Value As ReadOnlySpan(Of Byte), Optional encoder As JavaScriptEncoder = Nothing) As JsonEncodedText Parameters
utf8Value ReadOnlySpan
The UTF-8 encoded text to convert to JSON encoded text.
encoder JavaScriptEncoder
The encoder to use when escaping the string, or null to use the default encoder.
Returns
Encodes a specified text value as a JSON string. Public Shared Function Encode (value As ReadOnlySpan(Of Char), Optional encoder As JavaScriptEncoder = Nothing) As JsonEncodedText Parameters
value ReadOnlySpan
The value to convert to JSON encoded text.
encoder JavaScriptEncoder
The encoder to use when escaping the string, or null to use the default encoder.
Returns
Encodes the string text value as a JSON string. Public Shared Function Encode (value As String, Optional encoder As JavaScriptEncoder = Nothing) As JsonEncodedText Parameters
value String
The value to convert to JSON encoded text.
encoder JavaScriptEncoder
The encoder to use when escaping the string, or null to use the default encoder.
Returns