Export (0) Print
Expand All

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
[C#]
object GetSerializer(
   IDesignerSerializationManager manager,
 object currentSerializer,
 Type objectType,
 Type serializerType
);
[C++]
Object* GetSerializer(
   IDesignerSerializationManager* manager,
 Object* currentSerializer,
 Type* objectType,
 Type* serializerType
);
[JScript]
function GetSerializer(
   manager : IDesignerSerializationManager,
 currentSerializer : Object,
 objectType : Type,
 serializerType : Type
) : Object;

Parameters

manager
The serialization manager requesting the serializer.
currentSerializer
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.
objectType
The data type of the object to serialize.
serializerType
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.

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

Requirements

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

Show:
© 2015 Microsoft