SerializerFeature.AddSerializerType 方法

定义

重载

AddSerializerType(Type, Type)

添加序列化程序类型。

AddSerializerType(Type, Type, Boolean)

添加序列化程序类型。

AddSerializerType(Type, Type)

Source:
SerializerFeature.cs

添加序列化程序类型。

public void AddSerializerType (Type targetType, Type serializerType);
member this.AddSerializerType : Type * Type -> unit
Public Sub AddSerializerType (targetType As Type, serializerType As Type)

参数

targetType
Type
serializerType
Type

适用于

AddSerializerType(Type, Type, Boolean)

Source:
SerializerFeature.cs

添加序列化程序类型。

public void AddSerializerType (Type targetType, Type serializerType, bool overrideExisting);
member this.AddSerializerType : Type * Type * bool -> unit
Public Sub AddSerializerType (targetType As Type, serializerType As Type, overrideExisting As Boolean)

参数

targetType
Type
serializerType
Type
overrideExisting
Boolean

适用于