Rediger

Del via


IDesignerSerializationManager.AddSerializationProvider Method

Definition

Adds the specified serialization provider to the serialization manager.

public:
 void AddSerializationProvider(System::ComponentModel::Design::Serialization::IDesignerSerializationProvider ^ provider);
public void AddSerializationProvider (System.ComponentModel.Design.Serialization.IDesignerSerializationProvider provider);
abstract member AddSerializationProvider : System.ComponentModel.Design.Serialization.IDesignerSerializationProvider -> unit
Public Sub AddSerializationProvider (provider As IDesignerSerializationProvider)

Parameters

provider
IDesignerSerializationProvider

The serialization provider to add.

Remarks

This method adds a custom serialization provider to the serialization manager. Serialization providers can provide custom serializers for a particular type of object or set of types of objects. During serialization, each custom serialization provider is queried to return a serializer for a specific data type, if it can provide one. The serialization manager uses the custom serializer provided by this method before using the default serializer for a particular type.

Applies to