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: