JsonSerializableAttribute 클래스

정의

System.Text.Json 원본 생성기에 개체 그래프에서 지정된 형식 및 형식의 인스턴스를 직렬화 및 역직렬화할 때 성능을 최적화하는 데 도움이 되는 소스 코드를 생성하도록 지시합니다.

public ref class JsonSerializableAttribute sealed : System::Text::Json::Serialization::JsonAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class JsonSerializableAttribute : System.Text.Json.Serialization.JsonAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type JsonSerializableAttribute = class
    inherit JsonAttribute
Public NotInheritable Class JsonSerializableAttribute
Inherits JsonAttribute
상속
JsonSerializableAttribute
특성

생성자

Name Description
JsonSerializableAttribute(Type)

지정된 형식을 사용하여 새 인스턴스 JsonSerializableAttribute 를 초기화합니다.

속성

Name Description
GenerationMode

소스 생성기가 형식에 대해 생성해야 하는 항목을 나타내는 모드를 가져오거나 설정합니다. 값이 Default면 지정된 GenerationMode 설정이 사용됩니다.

TypeId

파생 클래스에서 구현되는 경우 이 Attribute대한 고유 식별자를 가져옵니다.

(다음에서 상속됨 Attribute)
TypeInfoPropertyName

생성된 파생 JsonSerializerContext 형식의 형식에 대해 생성된 JsonTypeInfo<T> 속성의 이름을 가져오거나 설정합니다.

메서드

Name Description
Equals(Object)

이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
GetHashCode()

이 인스턴스의 해시 코드를 반환합니다.

(다음에서 상속됨 Attribute)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
IsDefaultAttribute()

파생 클래스에서 재정의되는 경우 이 인스턴스의 값이 파생 클래스의 기본값인지 여부를 나타냅니다.

(다음에서 상속됨 Attribute)
Match(Object)

파생 클래스에서 재정의되는 경우 이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상