DataContractSerializerOperationBehavior.CreateSerializer メソッド

定義

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

オーバーロード

名前 説明
CreateSerializer(Type, String, String, IList<Type>)

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

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

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

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

ソース:
DataContractSerializerOperationBehavior.cs
ソース:
DataContractSerializerOperationBehavior.cs
ソース:
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 クラスから継承するクラスのインスタンス。

注釈

NetDataContractSerializerDataContractSerializerの両方が、XmlObjectSerializer クラスから継承されます。

適用対象

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

ソース:
DataContractSerializerOperationBehavior.cs
ソース:
DataContractSerializerOperationBehavior.cs
ソース:
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 クラスから継承するクラスのインスタンス。

注釈

DataContractSerializerNetDataContractSerializerの両方が、XmlObjectSerializer クラスから継承されます。

適用対象