DataContractSerializerOperationBehavior.CreateSerializer メソッド

定義

シリアル化プロセスおよび逆シリアル化プロセスのために、XmlObjectSerializer を継承するクラスのインスタンスを作成します。

オーバーロード

CreateSerializer(Type, String, String, IList<Type>)

シリアル化プロセスおよび逆シリアル化プロセスのために、XmlObjectSerializer を継承するクラスのインスタンスを作成します。

CreateSerializer(Type, XmlDictionaryString, XmlDictionaryString, IList<Type>)

名前空間を含む XmlObjectSerializer を使用して、シリアル化プロセスおよび逆シリアル化プロセスのために、XmlDictionaryString を継承するクラスのインスタンスを作成します。

CreateSerializer(Type, String, String, IList<Type>)

Source:
DataContractSerializerOperationBehavior.cs
Source:
DataContractSerializerOperationBehavior.cs
Source:
DataContractSerializerOperationBehavior.cs

シリアル化プロセスおよび逆シリアル化プロセスのために、XmlObjectSerializer を継承するクラスのインスタンスを作成します。

public:
 virtual System::Runtime::Serialization::XmlObjectSerializer ^ CreateSerializer(Type ^ type, System::String ^ name, System::String ^ ns, System::Collections::Generic::IList<Type ^> ^ knownTypes);
public virtual System.Runtime.Serialization.XmlObjectSerializer CreateSerializer (Type type, string name, string ns, System.Collections.Generic.IList<Type> knownTypes);
abstract member CreateSerializer : Type * string * string * System.Collections.Generic.IList<Type> -> System.Runtime.Serialization.XmlObjectSerializer
override this.CreateSerializer : Type * string * string * System.Collections.Generic.IList<Type> -> System.Runtime.Serialization.XmlObjectSerializer
Public Overridable Function CreateSerializer (type As Type, name As String, ns As String, knownTypes As IList(Of Type)) As XmlObjectSerializer

パラメーター

type
Type

シリアライザーを作成する対象の Type

name
String

生成される型の名前。

ns
String

生成される型の名前空間。

knownTypes
IList<Type>

既知の型を含む IList<T>Type

戻り値

XmlObjectSerializer クラスを継承するクラスのインスタンス。

注釈

NetDataContractSerializer および DataContractSerializer は、XmlObjectSerializer クラスを継承します。

適用対象

CreateSerializer(Type, XmlDictionaryString, XmlDictionaryString, IList<Type>)

Source:
DataContractSerializerOperationBehavior.cs
Source:
DataContractSerializerOperationBehavior.cs
Source:
DataContractSerializerOperationBehavior.cs

名前空間を含む XmlObjectSerializer を使用して、シリアル化プロセスおよび逆シリアル化プロセスのために、XmlDictionaryString を継承するクラスのインスタンスを作成します。

public:
 virtual System::Runtime::Serialization::XmlObjectSerializer ^ CreateSerializer(Type ^ type, System::Xml::XmlDictionaryString ^ name, System::Xml::XmlDictionaryString ^ ns, System::Collections::Generic::IList<Type ^> ^ knownTypes);
public virtual System.Runtime.Serialization.XmlObjectSerializer CreateSerializer (Type type, System.Xml.XmlDictionaryString name, System.Xml.XmlDictionaryString ns, System.Collections.Generic.IList<Type> knownTypes);
abstract member CreateSerializer : Type * System.Xml.XmlDictionaryString * System.Xml.XmlDictionaryString * System.Collections.Generic.IList<Type> -> System.Runtime.Serialization.XmlObjectSerializer
override this.CreateSerializer : Type * System.Xml.XmlDictionaryString * System.Xml.XmlDictionaryString * System.Collections.Generic.IList<Type> -> System.Runtime.Serialization.XmlObjectSerializer
Public Overridable Function CreateSerializer (type As Type, name As XmlDictionaryString, ns As XmlDictionaryString, knownTypes As IList(Of Type)) As XmlObjectSerializer

パラメーター

type
Type

シリアル化または逆シリアル化する型。

name
XmlDictionaryString

シリアル化される型の名前。

ns
XmlDictionaryString

シリアル化される型の名前空間を含む XmlDictionaryString

knownTypes
IList<Type>

既知の型を含む IList<T>Type

戻り値

XmlObjectSerializer クラスを継承するクラスのインスタンス。

注釈

DataContractSerializer および NetDataContractSerializer は、XmlObjectSerializer クラスを継承します。

適用対象