WorkflowMarkupSerializationManager.AddSerializationProvider(IDesignerSerializationProvider) 方法

定義

將指定的序列化提供者加入序列化管理員。Adds the specified serialization provider to the serialization manager.

public:
 virtual 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
override this.AddSerializationProvider : System.ComponentModel.Design.Serialization.IDesignerSerializationProvider -> unit
Public Sub AddSerializationProvider (provider As IDesignerSerializationProvider)

參數

實作

備註

AddSerializationProvider 將自訂序列化提供者加入序列化管理員。AddSerializationProvider 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.

適用於