This documentation is archived and is not being maintained.

IDesignerSerializationProvider.GetSerializer Method

Gets a serializer using the specified attributes.

[Visual Basic]
Function GetSerializer( _
   ByVal manager As IDesignerSerializationManager, _
   ByVal currentSerializer As Object, _
   ByVal objectType As Type, _
   ByVal serializerType As Type _
) As Object
object GetSerializer(
   IDesignerSerializationManager manager,
 object currentSerializer,
 Type objectType,
 Type serializerType
Object* GetSerializer(
   IDesignerSerializationManager* manager,
 Object* currentSerializer,
 Type* objectType,
 Type* serializerType
function GetSerializer(
   manager : IDesignerSerializationManager,
 currentSerializer : Object,
 objectType : Type,
 serializerType : Type
) : Object;


The serialization manager requesting the serializer.
An instance of the current serializer of the specified type. This can be a null reference (Nothing in Visual Basic) if no serializer of the specified type exists.
The data type of the object to serialize.
The data type of the serializer to create.

Return Value

An instance of a serializer of the type requested, or a null reference (Nothing in Visual Basic) if the request cannot be satisfied.


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 a null reference (Nothing in Visual Basic).


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IDesignerSerializationProvider Interface | IDesignerSerializationProvider Members | System.ComponentModel.Design.Serialization Namespace