Bewerken

Share via


SerializerProvider.RegisterSerializer(SerializerDescriptor, Boolean) Method

Definition

Registers a serializer plug-in.

public:
 static void RegisterSerializer(System::Windows::Documents::Serialization::SerializerDescriptor ^ serializerDescriptor, bool overwrite);
public static void RegisterSerializer (System.Windows.Documents.Serialization.SerializerDescriptor serializerDescriptor, bool overwrite);
static member RegisterSerializer : System.Windows.Documents.Serialization.SerializerDescriptor * bool -> unit
Public Shared Sub RegisterSerializer (serializerDescriptor As SerializerDescriptor, overwrite As Boolean)

Parameters

serializerDescriptor
SerializerDescriptor

The SerializerDescriptor for the plug-in.

overwrite
Boolean

true to overwrite an existing registration for the same plug-in; otherwise, false.

Exceptions

serializerDescriptor is null.

overwrite is false and the plug-in is already registered.

Remarks

Only fully trusted callers can use this method.

The method will interpret an already registered plug-in as the same one if it is the same in all these properties: DisplayName, AssemblyName, AssemblyVersion, and WinFXVersion.

Applies to