XmlDataContractSerializerOutputFormatter.CreateSerializer(Type) 方法

定义

为给定对象类型创建 的新 DataContractSerializer 实例。

protected:
 virtual System::Runtime::Serialization::DataContractSerializer ^ CreateSerializer(Type ^ type);
protected virtual System.Runtime.Serialization.DataContractSerializer CreateSerializer (Type type);
protected virtual System.Runtime.Serialization.DataContractSerializer? CreateSerializer (Type type);
abstract member CreateSerializer : Type -> System.Runtime.Serialization.DataContractSerializer
override this.CreateSerializer : Type -> System.Runtime.Serialization.DataContractSerializer
Protected Overridable Function CreateSerializer (type As Type) As DataContractSerializer

参数

type
Type

应为其创建序列化程序的 对象的类型。

返回

的新实例 DataContractSerializer

适用于