Export (0) Print
Expand All

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
)

Parameters

manager
Type: System.ComponentModel.Design.Serialization.IDesignerSerializationManager

The IDesignerSerializationManager to use for serialization.

valueType
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.

ExceptionCondition
ArgumentNullException

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.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft