JsonEncodedText 구조체

정의

UTF-8 또는 UTF-16 인코딩 텍스트를 JSON에 적합한 형식으로 변환하는 메서드를 제공합니다.

public value class JsonEncodedText : IEquatable<System::Text::Json::JsonEncodedText>
public readonly struct JsonEncodedText : IEquatable<System.Text.Json.JsonEncodedText>
type JsonEncodedText = struct
Public Structure JsonEncodedText
Implements IEquatable(Of JsonEncodedText)
상속
JsonEncodedText
구현

설명

이 형식은 미리 인코딩하여 JSON을 미리 작성하는 데 사용되는 알려진 문자열을 캐시하고 저장하는 데 사용할 수 있습니다.

속성

EncodedUtf8Bytes

미리 인코딩된 JSON 텍스트의 UTF-8 인코딩 표현을 가져옵니다.

Value

미리 인코딩된 JSON 텍스트의 UTF-16 인코딩 표현을 로 String가져옵니다.

메서드

Encode(ReadOnlySpan<Byte>, JavaScriptEncoder)

UTF-8 텍스트 값을 JSON 문자열로 인코딩합니다.

Encode(ReadOnlySpan<Char>, JavaScriptEncoder)

지정된 텍스트 값을 JSON 문자열로 인코딩합니다.

Encode(String, JavaScriptEncoder)

문자열 텍스트 값을 JSON 문자열로 인코딩합니다.

Equals(JsonEncodedText)

이 인스턴스와 지정된 다른 JsonEncodedText 인스턴스의 값이 같은지를 확인합니다.

Equals(Object)

이 인스턴스와 지정된 개체(JsonEncodedText 인스턴스여야 함)의 값이 같은지를 확인합니다.

GetHashCode()

JsonEncodedText의 해시 코드를 반환합니다.

ToString()

이 인스턴스의 값을 String으로 변환합니다.

적용 대상