Windows apps
Collapse the table of content
Expand the table of content
Information
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^>^)

 

Creates an instance of a class that inherits from XmlObjectSerializer for serialization and deserialization processes.

Namespace:   System.ServiceModel.Description
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^>^

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:
© 2017 Microsoft