GetSerializer Method (IDesignerSerializationManager, Type)

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.

Exception Condition
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
Available since 2.0
Return to top
Show:
© 2016 Microsoft