IDesignerSerializationProvider::GetSerializer Method (IDesignerSerializationManager^, Object^, Type^, Type^)
.NET Framework (current version)
Gets a serializer using the specified attributes.
Assembly: System (in System.dll)
Object^ GetSerializer( IDesignerSerializationManager^ manager, Object^ currentSerializer, Type^ objectType, Type^ serializerType )
Parameters
- manager
-
Type:
System.ComponentModel.Design.Serialization::IDesignerSerializationManager^
The serialization manager requesting the serializer.
- currentSerializer
-
Type:
System::Object^
An instance of the current serializer of the specified type. This can be null if no serializer of the specified type exists.
- objectType
-
Type:
System::Type^
The data type of the object to serialize.
- serializerType
-
Type:
System::Type^
The data type of the serializer to create.
Return Value
Type: System::Object^An instance of a serializer of the type requested, or null 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 null.
.NET Framework
Available since 1.1
Available since 1.1
Show: