DataContractSerializerOperationBehavior::CreateSerializer Method (Type^, XmlDictionaryString^, XmlDictionaryString^, IList<Type^>^)
.NET Framework (current version)
Creates an instance of a class that inherits from XmlObjectSerializer for serialization and deserialization processes with an XmlDictionaryString that contains the namespace.
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^>^
Return Value
Type: System.Runtime.Serialization::XmlObjectSerializer^An instance of a class that inherits from the XmlObjectSerializer class.
Both the DataContractSerializer and the NetDataContractSerializer inherit from the XmlObjectSerializer class.
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Show: