DataContractJsonSerializer 생성자

정의

DataContractJsonSerializer 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
DataContractJsonSerializer(Type)

지정된 형식의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

DataContractJsonSerializer(Type, XmlDictionaryString, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean)

지정된 형식의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다. 또한 이 메서드는 XML 요소의 루트 이름, 개체 그래프에 있을 수 있는 알려진 형식 목록, 직렬화 또는 역직렬화할 최대 그래프 항목 수, 예기치 않은 데이터를 무시하거나 형식 정보를 내보내는지 여부, 사용자 지정 serialization을 위한 서로게이트를 지정합니다.

DataContractJsonSerializer(Type, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean)

지정된 형식의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다. 또한 이 메서드는 개체 그래프에 있을 수 있는 알려진 형식 목록, 직렬화 또는 역직렬화할 최대 그래프 항목 수, 예기치 않은 데이터를 무시하거나 형식 정보를 내보내는지 여부, 사용자 지정 serialization을 위한 서로게이트를 지정합니다.

DataContractJsonSerializer(Type, XmlDictionaryString, IEnumerable<Type>)

개체 그래프에 있을 수 있는 알려진 형식의 컬렉션을 사용하여 형식 매개 DataContractJsonSerializer 변수로 지정된 XML 루트 요소를 사용하여 지정된 형식 XmlDictionaryString의 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

DataContractJsonSerializer(Type, String, IEnumerable<Type>)

개체 그래프에 있을 수 있는 알려진 형식의 DataContractJsonSerializer 컬렉션을 사용하여 매개 변수로 지정된 XML 루트 요소를 사용하여 지정된 형식의 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

DataContractJsonSerializer(Type, String, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean)

지정된 형식의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다. 또한 이 메서드는 XML 요소의 루트 이름, 개체 그래프에 있을 수 있는 알려진 형식 목록, 직렬화 또는 역직렬화할 최대 그래프 항목 수, 예기치 않은 데이터를 무시하거나 형식 정보를 내보내는지 여부, 사용자 지정 serialization을 위한 서로게이트를 지정합니다.

DataContractJsonSerializer(Type, String)

매개 변수로 지정된 XML 루트 요소를 사용하여 지정된 형식의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

DataContractJsonSerializer(Type, DataContractJsonSerializerSettings)

지정된 형식 및 serializer 설정의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

DataContractJsonSerializer(Type, IEnumerable<Type>)

개체 그래프에 있을 수 있는 알려진 형식의 DataContractJsonSerializer 컬렉션을 사용하여 지정된 형식의 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

DataContractJsonSerializer(Type, XmlDictionaryString)

형식의 DataContractJsonSerializer 매개 변수로 지정된 XML 루트 요소를 사용하여 지정된 형식의 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다 XmlDictionaryString.

DataContractJsonSerializer(Type)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

지정된 형식의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

public:
 DataContractJsonSerializer(Type ^ type);
public DataContractJsonSerializer(Type type);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type);
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type -> System.Runtime.Serialization.Json.DataContractJsonSerializer
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type -> System.Runtime.Serialization.Json.DataContractJsonSerializer
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type -> System.Runtime.Serialization.Json.DataContractJsonSerializer
Public Sub New (type As Type)

매개 변수

type
Type

직렬화되거나 역직렬화된 인스턴스의 형식입니다.

특성

적용 대상

DataContractJsonSerializer(Type, XmlDictionaryString, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean)

지정된 형식의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다. 또한 이 메서드는 XML 요소의 루트 이름, 개체 그래프에 있을 수 있는 알려진 형식 목록, 직렬화 또는 역직렬화할 최대 그래프 항목 수, 예기치 않은 데이터를 무시하거나 형식 정보를 내보내는지 여부, 사용자 지정 serialization을 위한 서로게이트를 지정합니다.

public:
 DataContractJsonSerializer(Type ^ type, System::Xml::XmlDictionaryString ^ rootName, System::Collections::Generic::IEnumerable<Type ^> ^ knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, System::Runtime::Serialization::IDataContractSurrogate ^ dataContractSurrogate, bool alwaysEmitTypeInformation);
public DataContractJsonSerializer(Type type, System.Xml.XmlDictionaryString rootName, System.Collections.Generic.IEnumerable<Type> knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, System.Runtime.Serialization.IDataContractSurrogate dataContractSurrogate, bool alwaysEmitTypeInformation);
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * System.Xml.XmlDictionaryString * seq<Type> * int * bool * System.Runtime.Serialization.IDataContractSurrogate * bool -> System.Runtime.Serialization.Json.DataContractJsonSerializer
Public Sub New (type As Type, rootName As XmlDictionaryString, knownTypes As IEnumerable(Of Type), maxItemsInObjectGraph As Integer, ignoreExtensionDataObject As Boolean, dataContractSurrogate As IDataContractSurrogate, alwaysEmitTypeInformation As Boolean)

매개 변수

type
Type

직렬화되거나 역직렬화된 인스턴스의 형식입니다.

rootName
XmlDictionaryString

XmlDictionaryString 콘텐츠의 루트 요소 이름을 포함하는 항목입니다.

knownTypes
IEnumerable<Type>

IEnumerable<T> 그 중 Type 개체 그래프에 있을 수 있는 알려진 형식을 포함합니다.

maxItemsInObjectGraph
Int32

직렬화 또는 역직렬화할 그래프의 최대 항목 수입니다. 기본값은 Int32.MaxValue 속성에서 반환되는 값입니다.

ignoreExtensionDataObject
Boolean

true 직렬화 시 인터페이스를 IExtensibleDataObject 무시하고 역직렬화 시 예기치 않은 데이터를 무시합니다. 그렇지 않으면 false. 기본값은 false입니다.

dataContractSurrogate
IDataContractSurrogate

serialization 프로세스를 사용자 지정하는 구현 IDataContractSurrogate 입니다.

alwaysEmitTypeInformation
Boolean

true형식 정보를 내보내려면 그렇지 않으면 . false 기본값은 false입니다.

적용 대상

DataContractJsonSerializer(Type, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean)

지정된 형식의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다. 또한 이 메서드는 개체 그래프에 있을 수 있는 알려진 형식 목록, 직렬화 또는 역직렬화할 최대 그래프 항목 수, 예기치 않은 데이터를 무시하거나 형식 정보를 내보내는지 여부, 사용자 지정 serialization을 위한 서로게이트를 지정합니다.

public:
 DataContractJsonSerializer(Type ^ type, System::Collections::Generic::IEnumerable<Type ^> ^ knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, System::Runtime::Serialization::IDataContractSurrogate ^ dataContractSurrogate, bool alwaysEmitTypeInformation);
public DataContractJsonSerializer(Type type, System.Collections.Generic.IEnumerable<Type> knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, System.Runtime.Serialization.IDataContractSurrogate dataContractSurrogate, bool alwaysEmitTypeInformation);
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * seq<Type> * int * bool * System.Runtime.Serialization.IDataContractSurrogate * bool -> System.Runtime.Serialization.Json.DataContractJsonSerializer
Public Sub New (type As Type, knownTypes As IEnumerable(Of Type), maxItemsInObjectGraph As Integer, ignoreExtensionDataObject As Boolean, dataContractSurrogate As IDataContractSurrogate, alwaysEmitTypeInformation As Boolean)

매개 변수

type
Type

직렬화되거나 역직렬화된 인스턴스의 형식입니다.

knownTypes
IEnumerable<Type>

XmlDictionaryString 콘텐츠의 루트 요소 이름을 포함하는 항목입니다.

maxItemsInObjectGraph
Int32

IEnumerable<T> 그 중 Type 개체 그래프에 있을 수 있는 형식이 포함됩니다.

ignoreExtensionDataObject
Boolean

true 직렬화 시 인터페이스를 IExtensibleDataObject 무시하고 역직렬화 시 예기치 않은 데이터를 무시합니다. 그렇지 않으면 false. 기본값은 false입니다.

dataContractSurrogate
IDataContractSurrogate

serialization 프로세스를 사용자 지정하는 구현 IDataContractSurrogate 입니다.

alwaysEmitTypeInformation
Boolean

true형식 정보를 내보내려면 그렇지 않으면 . false 기본값은 false입니다.

적용 대상

DataContractJsonSerializer(Type, XmlDictionaryString, IEnumerable<Type>)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

개체 그래프에 있을 수 있는 알려진 형식의 컬렉션을 사용하여 형식 매개 DataContractJsonSerializer 변수로 지정된 XML 루트 요소를 사용하여 지정된 형식 XmlDictionaryString의 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

public:
 DataContractJsonSerializer(Type ^ type, System::Xml::XmlDictionaryString ^ rootName, System::Collections::Generic::IEnumerable<Type ^> ^ knownTypes);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, System.Xml.XmlDictionaryString? rootName, System.Collections.Generic.IEnumerable<Type>? knownTypes);
public DataContractJsonSerializer(Type type, System.Xml.XmlDictionaryString? rootName, System.Collections.Generic.IEnumerable<Type>? knownTypes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, System.Xml.XmlDictionaryString? rootName, System.Collections.Generic.IEnumerable<Type>? knownTypes);
public DataContractJsonSerializer(Type type, System.Xml.XmlDictionaryString rootName, System.Collections.Generic.IEnumerable<Type> knownTypes);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * System.Xml.XmlDictionaryString * seq<Type> -> System.Runtime.Serialization.Json.DataContractJsonSerializer
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * System.Xml.XmlDictionaryString * seq<Type> -> System.Runtime.Serialization.Json.DataContractJsonSerializer
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * System.Xml.XmlDictionaryString * seq<Type> -> System.Runtime.Serialization.Json.DataContractJsonSerializer
Public Sub New (type As Type, rootName As XmlDictionaryString, knownTypes As IEnumerable(Of Type))

매개 변수

type
Type

직렬화되거나 역직렬화된 인스턴스의 형식입니다.

rootName
XmlDictionaryString

XmlDictionaryString 콘텐츠의 루트 요소 이름을 포함하는 항목입니다.

knownTypes
IEnumerable<Type>

IEnumerable<T> 그 중 Type 개체 그래프에 있을 수 있는 형식이 포함됩니다.

특성

적용 대상

DataContractJsonSerializer(Type, String, IEnumerable<Type>)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

개체 그래프에 있을 수 있는 알려진 형식의 DataContractJsonSerializer 컬렉션을 사용하여 매개 변수로 지정된 XML 루트 요소를 사용하여 지정된 형식의 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

public:
 DataContractJsonSerializer(Type ^ type, System::String ^ rootName, System::Collections::Generic::IEnumerable<Type ^> ^ knownTypes);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, string? rootName, System.Collections.Generic.IEnumerable<Type>? knownTypes);
public DataContractJsonSerializer(Type type, string? rootName, System.Collections.Generic.IEnumerable<Type>? knownTypes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, string? rootName, System.Collections.Generic.IEnumerable<Type>? knownTypes);
public DataContractJsonSerializer(Type type, string rootName, System.Collections.Generic.IEnumerable<Type> knownTypes);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * string * seq<Type> -> System.Runtime.Serialization.Json.DataContractJsonSerializer
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * string * seq<Type> -> System.Runtime.Serialization.Json.DataContractJsonSerializer
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * string * seq<Type> -> System.Runtime.Serialization.Json.DataContractJsonSerializer
Public Sub New (type As Type, rootName As String, knownTypes As IEnumerable(Of Type))

매개 변수

type
Type

직렬화되거나 역직렬화된 인스턴스의 형식입니다.

rootName
String

직렬화 또는 역직렬화할 콘텐츠를 묶는 XML 요소의 이름입니다. 기본값은 "root"입니다.

knownTypes
IEnumerable<Type>

IEnumerable<T> 그 중 Type 개체 그래프에 있을 수 있는 형식이 포함됩니다.

특성

적용 대상

DataContractJsonSerializer(Type, String, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean)

지정된 형식의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다. 또한 이 메서드는 XML 요소의 루트 이름, 개체 그래프에 있을 수 있는 알려진 형식 목록, 직렬화 또는 역직렬화할 최대 그래프 항목 수, 예기치 않은 데이터를 무시하거나 형식 정보를 내보내는지 여부, 사용자 지정 serialization을 위한 서로게이트를 지정합니다.

public:
 DataContractJsonSerializer(Type ^ type, System::String ^ rootName, System::Collections::Generic::IEnumerable<Type ^> ^ knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, System::Runtime::Serialization::IDataContractSurrogate ^ dataContractSurrogate, bool alwaysEmitTypeInformation);
public DataContractJsonSerializer(Type type, string rootName, System.Collections.Generic.IEnumerable<Type> knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, System.Runtime.Serialization.IDataContractSurrogate dataContractSurrogate, bool alwaysEmitTypeInformation);
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * string * seq<Type> * int * bool * System.Runtime.Serialization.IDataContractSurrogate * bool -> System.Runtime.Serialization.Json.DataContractJsonSerializer
Public Sub New (type As Type, rootName As String, knownTypes As IEnumerable(Of Type), maxItemsInObjectGraph As Integer, ignoreExtensionDataObject As Boolean, dataContractSurrogate As IDataContractSurrogate, alwaysEmitTypeInformation As Boolean)

매개 변수

type
Type

직렬화되거나 역직렬화된 인스턴스의 형식입니다.

rootName
String

직렬화 또는 역직렬화할 콘텐츠를 묶는 XML 요소의 이름입니다. 기본값은 "root"입니다.

knownTypes
IEnumerable<Type>

IEnumerable<T> 그 중 Type 개체 그래프에 있을 수 있는 형식이 포함됩니다.

maxItemsInObjectGraph
Int32

직렬화 또는 역직렬화할 그래프의 최대 항목 수입니다. 기본값은 Int32.MaxValue 속성에서 반환되는 값입니다.

ignoreExtensionDataObject
Boolean

true 직렬화 시 인터페이스를 IExtensibleDataObject 무시하고 역직렬화 시 예기치 않은 데이터를 무시합니다. 그렇지 않으면 false. 기본값은 false입니다.

dataContractSurrogate
IDataContractSurrogate

serialization 프로세스를 사용자 지정하는 구현 IDataContractSurrogate 입니다.

alwaysEmitTypeInformation
Boolean

true형식 정보를 내보내려면 그렇지 않으면 . false 기본값은 false입니다.

적용 대상

DataContractJsonSerializer(Type, String)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

매개 변수로 지정된 XML 루트 요소를 사용하여 지정된 형식의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

public:
 DataContractJsonSerializer(Type ^ type, System::String ^ rootName);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, string? rootName);
public DataContractJsonSerializer(Type type, string? rootName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, string? rootName);
public DataContractJsonSerializer(Type type, string rootName);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * string -> System.Runtime.Serialization.Json.DataContractJsonSerializer
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * string -> System.Runtime.Serialization.Json.DataContractJsonSerializer
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * string -> System.Runtime.Serialization.Json.DataContractJsonSerializer
Public Sub New (type As Type, rootName As String)

매개 변수

type
Type

직렬화되거나 역직렬화된 인스턴스의 형식입니다.

rootName
String

직렬화 또는 역직렬화할 콘텐츠를 묶는 XML 요소의 이름입니다.

특성

적용 대상

DataContractJsonSerializer(Type, DataContractJsonSerializerSettings)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

지정된 형식 및 serializer 설정의 DataContractJsonSerializer 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

public:
 DataContractJsonSerializer(Type ^ type, System::Runtime::Serialization::Json::DataContractJsonSerializerSettings ^ settings);
public DataContractJsonSerializer(Type type, System.Runtime.Serialization.Json.DataContractJsonSerializerSettings settings);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, System.Runtime.Serialization.Json.DataContractJsonSerializerSettings? settings);
public DataContractJsonSerializer(Type type, System.Runtime.Serialization.Json.DataContractJsonSerializerSettings? settings);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, System.Runtime.Serialization.Json.DataContractJsonSerializerSettings? settings);
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * System.Runtime.Serialization.Json.DataContractJsonSerializerSettings -> System.Runtime.Serialization.Json.DataContractJsonSerializer
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * System.Runtime.Serialization.Json.DataContractJsonSerializerSettings -> System.Runtime.Serialization.Json.DataContractJsonSerializer
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * System.Runtime.Serialization.Json.DataContractJsonSerializerSettings -> System.Runtime.Serialization.Json.DataContractJsonSerializer
Public Sub New (type As Type, settings As DataContractJsonSerializerSettings)

매개 변수

type
Type

직렬화되거나 역직렬화된 인스턴스의 형식입니다.

settings
DataContractJsonSerializerSettings

JSON serializer에 대한 직렬 변환기 설정입니다.

특성

적용 대상

DataContractJsonSerializer(Type, IEnumerable<Type>)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

개체 그래프에 있을 수 있는 알려진 형식의 DataContractJsonSerializer 컬렉션을 사용하여 지정된 형식의 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다.

public:
 DataContractJsonSerializer(Type ^ type, System::Collections::Generic::IEnumerable<Type ^> ^ knownTypes);
public DataContractJsonSerializer(Type type, System.Collections.Generic.IEnumerable<Type> knownTypes);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, System.Collections.Generic.IEnumerable<Type>? knownTypes);
public DataContractJsonSerializer(Type type, System.Collections.Generic.IEnumerable<Type>? knownTypes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, System.Collections.Generic.IEnumerable<Type>? knownTypes);
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * seq<Type> -> System.Runtime.Serialization.Json.DataContractJsonSerializer
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * seq<Type> -> System.Runtime.Serialization.Json.DataContractJsonSerializer
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * seq<Type> -> System.Runtime.Serialization.Json.DataContractJsonSerializer
Public Sub New (type As Type, knownTypes As IEnumerable(Of Type))

매개 변수

type
Type

직렬화되거나 역직렬화된 인스턴스의 형식입니다.

knownTypes
IEnumerable<Type>

IEnumerable<T> 그 중 Type 개체 그래프에 있을 수 있는 형식이 포함됩니다.

특성

적용 대상

DataContractJsonSerializer(Type, XmlDictionaryString)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

형식의 DataContractJsonSerializer 매개 변수로 지정된 XML 루트 요소를 사용하여 지정된 형식의 개체를 직렬화하거나 역직렬화하는 클래스의 새 인스턴스를 초기화합니다 XmlDictionaryString.

public:
 DataContractJsonSerializer(Type ^ type, System::Xml::XmlDictionaryString ^ rootName);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, System.Xml.XmlDictionaryString? rootName);
public DataContractJsonSerializer(Type type, System.Xml.XmlDictionaryString? rootName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public DataContractJsonSerializer(Type type, System.Xml.XmlDictionaryString? rootName);
public DataContractJsonSerializer(Type type, System.Xml.XmlDictionaryString rootName);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * System.Xml.XmlDictionaryString -> System.Runtime.Serialization.Json.DataContractJsonSerializer
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * System.Xml.XmlDictionaryString -> System.Runtime.Serialization.Json.DataContractJsonSerializer
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
new System.Runtime.Serialization.Json.DataContractJsonSerializer : Type * System.Xml.XmlDictionaryString -> System.Runtime.Serialization.Json.DataContractJsonSerializer
Public Sub New (type As Type, rootName As XmlDictionaryString)

매개 변수

type
Type

직렬화되거나 역직렬화된 인스턴스의 형식입니다.

rootName
XmlDictionaryString

XmlDictionaryString 콘텐츠의 루트 요소 이름을 포함하는 항목입니다.

특성

적용 대상