System.ComponentModel.Design.Serialization.IDesignerSerializationProvider.GetSerializer Method

Gets a serializer using the specified attributes.

Syntax

public object GetSerializer (IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType)

Parameters

manager
The serialization manager requesting the serializer.
currentSerializer
An instance of the current serializer of the specified type. This can be null if no serializer of the specified type exists.
objectType
The data type of the object to serialize.
serializerType
The data type of the serializer to create.

Returns

An instance of a serializer of the type requested, or null if the request cannot be satisfied.

Remarks

The serialization manager calls this method when it is trying to locate a serializer for an object type. If this serialization provider can provide a serializer of the correct type, this provider returns it. Otherwise, it returns null.

Requirements

Namespace: System.ComponentModel.Design.Serialization
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0