共用方式為


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

適用於