The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DataContractSerializerOperationBehavior::CreateSerializer Method (Type^, String^, String^, IList<Type^>^)
.NET Framework (current version)
Creates an instance of a class that inherits from XmlObjectSerializer for serialization and deserialization processes.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: virtual XmlObjectSerializer^ CreateSerializer( Type^ type, String^ name, String^ ns, IList<Type^>^ knownTypes )
Parameters
- type
-
Type:
System::Type^
The Type to create the serializer for.
- name
-
Type:
System::String^
The name of the generated type.
- ns
-
Type:
System::String^
The namespace of the generated 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 NetDataContractSerializer and the DataContractSerializer 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: