JsonSerializer.SerializeToNode 메서드

정의

오버로드

Name Description
SerializeToNode(Object, JsonTypeInfo)

제공된 값을 으로 JsonNode변환합니다.

SerializeToNode(Object, Type, JsonSerializerOptions)

제공된 값을 으로 JsonNode변환합니다.

SerializeToNode(Object, Type, JsonSerializerContext)

제공된 값을 으로 JsonNode변환합니다.

SerializeToNode<TValue>(TValue, JsonSerializerOptions)

제공된 값을 으로 JsonNode변환합니다.

SerializeToNode<TValue>(TValue, JsonTypeInfo<TValue>)

제공된 값을 으로 JsonNode변환합니다.

SerializeToNode(Object, JsonTypeInfo)

Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs

제공된 값을 으로 JsonNode변환합니다.

public:
 static System::Text::Json::Nodes::JsonNode ^ SerializeToNode(System::Object ^ value, System::Text::Json::Serialization::Metadata::JsonTypeInfo ^ jsonTypeInfo);
public static System.Text.Json.Nodes.JsonNode? SerializeToNode(object? value, System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo);
static member SerializeToNode : obj * System.Text.Json.Serialization.Metadata.JsonTypeInfo -> System.Text.Json.Nodes.JsonNode
Public Function SerializeToNode (value As Object, jsonTypeInfo As JsonTypeInfo) As JsonNode

매개 변수

value
Object

변환할 값입니다.

jsonTypeInfo
JsonTypeInfo

변환할 형식에 대한 메타데이터입니다.

반품

JsonNode 값의 표현입니다.

예외

jsonTypeInfonull입니다.

value 가 .의 jsonTypeInfo형식과 일치하지 않습니다.

적용 대상

SerializeToNode(Object, Type, JsonSerializerOptions)

Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs

제공된 값을 으로 JsonNode변환합니다.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Text.Json.Nodes.JsonNode? SerializeToNode(object? value, Type inputType, System.Text.Json.JsonSerializerOptions? options = default);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Text.Json.Nodes.JsonNode? SerializeToNode(object? value, Type inputType, System.Text.Json.JsonSerializerOptions? options = default);
public static System.Text.Json.Nodes.JsonNode? SerializeToNode(object? value, Type inputType, System.Text.Json.JsonSerializerOptions? options = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member SerializeToNode : obj * Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Nodes.JsonNode
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member SerializeToNode : obj * Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Nodes.JsonNode
static member SerializeToNode : obj * Type * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Nodes.JsonNode
Public Function SerializeToNode (value As Object, inputType As Type, Optional options As JsonSerializerOptions = Nothing) As JsonNode

매개 변수

value
Object

변환할 값입니다.

inputType
Type

변환할 형식입니다 value .

options
JsonSerializerOptions

변환 동작을 제어하는 옵션입니다.

반품

JsonNode 값의 표현입니다.

특성

예외

inputType value호환되지 않습니다.

inputTypenull입니다.

직렬화할 수 있는 멤버나 호환 JsonConverterinputType 되는 멤버는 없습니다.

적용 대상

SerializeToNode(Object, Type, JsonSerializerContext)

Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs

제공된 값을 으로 JsonNode변환합니다.

public:
 static System::Text::Json::Nodes::JsonNode ^ SerializeToNode(System::Object ^ value, Type ^ inputType, System::Text::Json::Serialization::JsonSerializerContext ^ context);
public static System.Text.Json.Nodes.JsonNode? SerializeToNode(object? value, Type inputType, System.Text.Json.Serialization.JsonSerializerContext context);
static member SerializeToNode : obj * Type * System.Text.Json.Serialization.JsonSerializerContext -> System.Text.Json.Nodes.JsonNode
Public Function SerializeToNode (value As Object, inputType As Type, context As JsonSerializerContext) As JsonNode

매개 변수

value
Object

변환할 값입니다.

inputType
Type

변환할 형식입니다 value .

context
JsonSerializerContext

직렬화 가능한 형식에 대한 메타데이터 공급자입니다.

반품

JsonNode 값의 표현입니다.

예외

직렬화할 수 있는 멤버나 호환 JsonConverterinputType 되는 멤버는 없습니다.

GetTypeInfo(Type) 변환할 형식에 대해 제공된 context 반환 null 의 메서드입니다.

inputType 또는 context .입니다 null.

적용 대상

SerializeToNode<TValue>(TValue, JsonSerializerOptions)

Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs

제공된 값을 으로 JsonNode변환합니다.

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Text.Json.Nodes.JsonNode? SerializeToNode<TValue>(TValue value, System.Text.Json.JsonSerializerOptions? options = default);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static System.Text.Json.Nodes.JsonNode? SerializeToNode<TValue>(TValue value, System.Text.Json.JsonSerializerOptions? options = default);
public static System.Text.Json.Nodes.JsonNode? SerializeToNode<TValue>(TValue value, System.Text.Json.JsonSerializerOptions? options = default);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member SerializeToNode : 'Value * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Nodes.JsonNode
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")>]
static member SerializeToNode : 'Value * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Nodes.JsonNode
static member SerializeToNode : 'Value * System.Text.Json.JsonSerializerOptions -> System.Text.Json.Nodes.JsonNode
Public Function SerializeToNode(Of TValue) (value As TValue, Optional options As JsonSerializerOptions = Nothing) As JsonNode

형식 매개 변수

TValue

serialize할 값의 형식입니다.

매개 변수

value
TValue

변환할 값입니다.

options
JsonSerializerOptions

변환 동작을 제어하는 옵션입니다.

반품

JsonNode JSON 값의 표현입니다.

특성

예외

직렬화할 수 있는 멤버나 호환 JsonConverterTValue 되는 멤버는 없습니다.

적용 대상

SerializeToNode<TValue>(TValue, JsonTypeInfo<TValue>)

Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs
Source:
JsonSerializer.Write.Node.cs

제공된 값을 으로 JsonNode변환합니다.

public:
generic <typename TValue>
 static System::Text::Json::Nodes::JsonNode ^ SerializeToNode(TValue value, System::Text::Json::Serialization::Metadata::JsonTypeInfo<TValue> ^ jsonTypeInfo);
public static System.Text.Json.Nodes.JsonNode? SerializeToNode<TValue>(TValue value, System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue> jsonTypeInfo);
static member SerializeToNode : 'Value * System.Text.Json.Serialization.Metadata.JsonTypeInfo<'Value> -> System.Text.Json.Nodes.JsonNode
Public Function SerializeToNode(Of TValue) (value As TValue, jsonTypeInfo As JsonTypeInfo(Of TValue)) As JsonNode

형식 매개 변수

TValue

serialize할 값의 형식입니다.

매개 변수

value
TValue

변환할 값입니다.

jsonTypeInfo
JsonTypeInfo<TValue>

변환할 형식에 대한 메타데이터입니다.

반품

JsonNode 값의 표현입니다.

예외

직렬화할 수 있는 멤버나 호환 JsonConverterTValue 되는 멤버는 없습니다.

jsonTypeInfonull입니다.

적용 대상