XmlDataContractSerializerOutputFormatter.CreateSerializer(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为给定对象类型创建 的新 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
应为其创建序列化程序的 对象的类型。