Redigera

Dela via


IDesignerSerializationProvider.GetSerializer Method

Definition

Gets a serializer using the specified attributes.

public:
 System::Object ^ GetSerializer(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::Object ^ currentSerializer, Type ^ objectType, Type ^ serializerType);
public object GetSerializer (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType);
public object? GetSerializer (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType);
public object? GetSerializer (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object? currentSerializer, Type? objectType, Type serializerType);
abstract member GetSerializer : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj * Type * Type -> obj
Public Function GetSerializer (manager As IDesignerSerializationManager, currentSerializer As Object, objectType As Type, serializerType As Type) As Object

Parameters

manager
IDesignerSerializationManager

The serialization manager requesting the serializer.

currentSerializer
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

The data type of the object to serialize.

serializerType
Type

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.

Applies to