DataContractJsonSerializer Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
DataContractJsonSerializer sınıfının yeni bir örneğini başlatır.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| DataContractJsonSerializer(Type) |
Belirtilen türde bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır. |
| DataContractJsonSerializer(Type, XmlDictionaryString, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean) |
Belirtilen türde bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır. Bu yöntem ayrıca XML öğesinin kök adını, nesne grafında bulunabilecek bilinen türlerin listesini, serileştirilecek veya seri durumdan çıkarılacak en fazla grafik öğesi sayısını, beklenmeyen verileri yoksaymak veya tür bilgilerini yaymak ve özel serileştirme için bir vekil belirtir. |
| DataContractJsonSerializer(Type, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean) |
Belirtilen türde bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır. Bu yöntem ayrıca nesne grafında mevcut olabilecek bilinen türlerin listesini, serileştirilecek veya seri durumdan çıkarılacak en fazla grafik öğesi sayısını, beklenmeyen verileri yoksayma veya tür bilgilerini yayma ve özel serileştirme için bir vekil belirtir. |
| DataContractJsonSerializer(Type, XmlDictionaryString, IEnumerable<Type>) |
türündeki bir parametre tarafından belirtilen XML kök öğesini kullanarak belirtilen türdeki bir nesneyi serileştirmek veya seri durumdan DataContractJsonSerializerçıkarmak için sınıfının yeni bir örneğini XmlDictionaryString başlatır ve nesne grafiğinde mevcut olabilecek bilinen türlerden oluşan bir koleksiyon içerir. |
| DataContractJsonSerializer(Type, String, IEnumerable<Type>) |
Bir parametre tarafından belirtilen XML kök öğesini kullanarak belirtilen türdeki bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır ve nesne grafında mevcut olabilecek bilinen türler koleksiyonuyla. |
| DataContractJsonSerializer(Type, String, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean) |
Belirtilen türde bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır. Bu yöntem ayrıca XML öğesinin kök adını, nesne grafında bulunabilecek bilinen türlerin listesini, serileştirilecek veya seri durumdan çıkarılacak en fazla grafik öğesi sayısını, beklenmeyen verileri yoksaymak veya tür bilgilerini yaymak ve özel serileştirme için bir vekil belirtir. |
| DataContractJsonSerializer(Type, String) |
Bir parametre tarafından belirtilen XML kök öğesini kullanarak belirtilen türdeki bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır. |
| DataContractJsonSerializer(Type, DataContractJsonSerializerSettings) |
Belirtilen tür ve seri hale getirici ayarlarındaki DataContractJsonSerializer bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini başlatır. |
| DataContractJsonSerializer(Type, IEnumerable<Type>) |
Belirtilen türdeki DataContractJsonSerializer bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini başlatır ve nesne grafında mevcut olabilecek bilinen türlerden oluşan bir koleksiyon içerir. |
| DataContractJsonSerializer(Type, XmlDictionaryString) |
türündeki bir parametre tarafından belirtilen XML kök öğesini kullanarak belirtilen türdeki bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializerXmlDictionaryStringbaşlatır. |
DataContractJsonSerializer(Type)
Belirtilen türde bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır.
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)
Parametreler
- type
- Type
Serileştirilmiş veya seri durumdan çıkarılmış örneklerin türü.
- Öznitelikler
Şunlara uygulanır
DataContractJsonSerializer(Type, XmlDictionaryString, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean)
Belirtilen türde bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır. Bu yöntem ayrıca XML öğesinin kök adını, nesne grafında bulunabilecek bilinen türlerin listesini, serileştirilecek veya seri durumdan çıkarılacak en fazla grafik öğesi sayısını, beklenmeyen verileri yoksaymak veya tür bilgilerini yaymak ve özel serileştirme için bir vekil belirtir.
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)
Parametreler
- type
- Type
Seri hale getirilmiş veya seri durumdan çıkarılmış örneklerin türü.
- rootName
- XmlDictionaryString
XmlDictionaryString İçeriğin kök öğe adını içeren bir.
- knownTypes
- IEnumerable<Type>
IEnumerable<T> Nesne Type grafında mevcut olabilecek bilinen türleri içeren bir öğesi.
- maxItemsInObjectGraph
- Int32
Grafikteki seri hale getirilmeye veya seri durumdan çıkarılırken en fazla öğe sayısı. Varsayılan değer , Int32.MaxValue özelliği tarafından döndürülen değerdir.
- ignoreExtensionDataObject
- Boolean
true serileştirme sırasında IExtensibleDataObject arabirimi yoksaymak ve seri durumdan çıkarılırken beklenmeyen verileri yoksaymak için; aksi takdirde, false. Varsayılan değer: false.
- dataContractSurrogate
- IDataContractSurrogate
IDataContractSurrogate Serileştirme işlemini özelleştirmek için uygulaması.
- alwaysEmitTypeInformation
- Boolean
true tür bilgilerini yaymak için; aksi takdirde , false. Varsayılan değer: false.
Şunlara uygulanır
DataContractJsonSerializer(Type, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean)
Belirtilen türde bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır. Bu yöntem ayrıca nesne grafında mevcut olabilecek bilinen türlerin listesini, serileştirilecek veya seri durumdan çıkarılacak en fazla grafik öğesi sayısını, beklenmeyen verileri yoksayma veya tür bilgilerini yayma ve özel serileştirme için bir vekil belirtir.
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)
Parametreler
- type
- Type
Serileştirilmiş veya seri durumdan çıkarılmış örneklerin türü.
- knownTypes
- IEnumerable<Type>
XmlDictionaryString İçeriğin kök öğe adını içeren bir.
- maxItemsInObjectGraph
- Int32
IEnumerable<T> Nesne Type grafında bulunabilecek türleri içeren bir öğesi.
- ignoreExtensionDataObject
- Boolean
true serileştirme sırasında IExtensibleDataObject arabirimi yoksaymak ve seri durumdan çıkarılırken beklenmeyen verileri yoksaymak için; aksi takdirde, false. Varsayılan değer: false.
- dataContractSurrogate
- IDataContractSurrogate
IDataContractSurrogate Serileştirme işlemini özelleştirmek için uygulaması.
- alwaysEmitTypeInformation
- Boolean
true tür bilgilerini yaymak için; aksi takdirde , false. Varsayılan değer: false.
Şunlara uygulanır
DataContractJsonSerializer(Type, XmlDictionaryString, IEnumerable<Type>)
türündeki bir parametre tarafından belirtilen XML kök öğesini kullanarak belirtilen türdeki bir nesneyi serileştirmek veya seri durumdan DataContractJsonSerializerçıkarmak için sınıfının yeni bir örneğini XmlDictionaryString başlatır ve nesne grafiğinde mevcut olabilecek bilinen türlerden oluşan bir koleksiyon içerir.
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))
Parametreler
- type
- Type
Serileştirilmiş veya seri durumdan çıkarılmış örneklerin türü.
- rootName
- XmlDictionaryString
XmlDictionaryString İçeriğin kök öğe adını içeren bir.
- knownTypes
- IEnumerable<Type>
IEnumerable<T> Nesne Type grafında bulunabilecek türleri içeren bir öğesi.
- Öznitelikler
Şunlara uygulanır
DataContractJsonSerializer(Type, String, IEnumerable<Type>)
Bir parametre tarafından belirtilen XML kök öğesini kullanarak belirtilen türdeki bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır ve nesne grafında mevcut olabilecek bilinen türler koleksiyonuyla.
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))
Parametreler
- type
- Type
Serileştirilmiş veya seri durumdan çıkarılmış örneklerin türü.
- rootName
- String
Seri hale getirmek veya seri durumdan çıkarmak için içeriği kapsayan XML öğesinin adı. Varsayılan değer "kök"dür.
- knownTypes
- IEnumerable<Type>
IEnumerable<T> Nesne Type grafında bulunabilecek türleri içeren bir öğesi.
- Öznitelikler
Şunlara uygulanır
DataContractJsonSerializer(Type, String, IEnumerable<Type>, Int32, Boolean, IDataContractSurrogate, Boolean)
Belirtilen türde bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır. Bu yöntem ayrıca XML öğesinin kök adını, nesne grafında bulunabilecek bilinen türlerin listesini, serileştirilecek veya seri durumdan çıkarılacak en fazla grafik öğesi sayısını, beklenmeyen verileri yoksaymak veya tür bilgilerini yaymak ve özel serileştirme için bir vekil belirtir.
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)
Parametreler
- type
- Type
Serileştirilmiş veya seri durumdan çıkarılmış örneklerin türü.
- rootName
- String
Seri hale getirmek veya seri durumdan çıkarmak için içeriği kapsayan XML öğesinin adı. Varsayılan değer "kök"dür.
- knownTypes
- IEnumerable<Type>
IEnumerable<T> Nesne Type grafında bulunabilecek türleri içeren bir öğesi.
- maxItemsInObjectGraph
- Int32
Grafikteki seri hale getirilmeye veya seri durumdan çıkarılırken en fazla öğe sayısı. Varsayılan değer , Int32.MaxValue özelliği tarafından döndürülen değerdir.
- ignoreExtensionDataObject
- Boolean
true serileştirme sırasında IExtensibleDataObject arabirimi yoksaymak ve seri durumdan çıkarılırken beklenmeyen verileri yoksaymak için; aksi takdirde, false. Varsayılan değer: false.
- dataContractSurrogate
- IDataContractSurrogate
IDataContractSurrogate Serileştirme işlemini özelleştirmek için uygulaması.
- alwaysEmitTypeInformation
- Boolean
true tür bilgilerini yaymak için; aksi takdirde , false. Varsayılan değer: false.
Şunlara uygulanır
DataContractJsonSerializer(Type, String)
Bir parametre tarafından belirtilen XML kök öğesini kullanarak belirtilen türdeki bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializer başlatır.
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)
Parametreler
- type
- Type
Serileştirilmiş veya seri durumdan çıkarılmış örneklerin türü.
- rootName
- String
Seri hale getirmek veya seri durumdan çıkarmak için içeriği kapsayan XML öğesinin adı.
- Öznitelikler
Şunlara uygulanır
DataContractJsonSerializer(Type, DataContractJsonSerializerSettings)
Belirtilen tür ve seri hale getirici ayarlarındaki DataContractJsonSerializer bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini başlatır.
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)
Parametreler
- type
- Type
Serileştirilmiş veya seri durumdan çıkarılmış örneklerin türü.
- settings
- DataContractJsonSerializerSettings
JSON seri hale getiricisi için seri hale getirici ayarları.
- Öznitelikler
Şunlara uygulanır
DataContractJsonSerializer(Type, IEnumerable<Type>)
Belirtilen türdeki DataContractJsonSerializer bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini başlatır ve nesne grafında mevcut olabilecek bilinen türlerden oluşan bir koleksiyon içerir.
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))
Parametreler
- type
- Type
Seri hale getirilmiş veya seri durumdan çıkarılmış örneklerin türü.
- knownTypes
- IEnumerable<Type>
IEnumerable<T> Nesne Type grafında bulunabilecek türleri içeren bir öğesi.
- Öznitelikler
Şunlara uygulanır
DataContractJsonSerializer(Type, XmlDictionaryString)
türündeki bir parametre tarafından belirtilen XML kök öğesini kullanarak belirtilen türdeki bir nesneyi serileştirmek veya seri durumdan çıkarmak için sınıfının yeni bir örneğini DataContractJsonSerializerXmlDictionaryStringbaşlatır.
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)
Parametreler
- type
- Type
Serileştirilmiş veya seri durumdan çıkarılmış örneklerin türü.
- rootName
- XmlDictionaryString
XmlDictionaryString İçeriğin kök öğe adını içeren bir.
- Öznitelikler