DataContractSerializerOperationBehavior::CreateSerializer Method (Type^, XmlDictionaryString^, XmlDictionaryString^, IList<Type^>^)

 

Creates an instance of a class that inherits from XmlObjectSerializer for serialization and deserialization processes with an XmlDictionaryString that contains the namespace.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
virtual XmlObjectSerializer^ CreateSerializer(
	Type^ type,
	XmlDictionaryString^ name,
	XmlDictionaryString^ ns,
	IList<Type^>^ knownTypes
)

Parameters

type
Type: System::Type^

The type to serialize or deserialize.

name
Type: System.Xml::XmlDictionaryString^

The name of the serialized type.

ns
Type: System.Xml::XmlDictionaryString^

An XmlDictionaryString that contains the namespace of the serialized type.

knownTypes
Type: System.Collections.Generic::IList<Type^>^

An IList<T> of Type that contains known types.

Return Value

Type: System.Runtime.Serialization::XmlObjectSerializer^

An instance of a class that inherits from the XmlObjectSerializer class.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show: