XmlSerializerOutputFormatter.CreateSerializer(Type) 方法

定义

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

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

参数

type
Type

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

返回

的新实例 XmlSerializer

适用于