This documentation is archived and is not being maintained.

CodeDomSerializerBase.GetSerializer Method (IDesignerSerializationManager, Type)

Locates a serializer for the given type.

Namespace:  System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

protected CodeDomSerializer GetSerializer(
	IDesignerSerializationManager manager,
	Type valueType


Type: System.ComponentModel.Design.Serialization.IDesignerSerializationManager
The IDesignerSerializationManager to use for serialization.
Type: System.Type
The Type specifying the serializer to retrieve.

Return Value

Type: System.ComponentModel.Design.Serialization.CodeDomSerializer
A CodeDomSerializer that is appropriate for valueType.


manager or valueType is null.

The GetSerializer method is an extension to the IDesignerSerializationManager.GetSerializer method. The IDesignerSerializationManager.GetSerializer method takes an object type, rather than an object value.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.