SerializerProvider.RegisterSerializer Method

Registers a serializer plug-in.

Namespace: System.Windows.Documents.Serialization
Assembly: PresentationFramework (in presentationframework.dll)

public static void RegisterSerializer (
	SerializerDescriptor serializerDescriptor,
	bool overwrite
public static void RegisterSerializer (
	SerializerDescriptor serializerDescriptor, 
	boolean overwrite
public static function RegisterSerializer (
	serializerDescriptor : SerializerDescriptor, 
	overwrite : boolean
You cannot use methods in XAML.



The SerializerDescriptor for the plug-in.


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

Exception typeCondition


serializerDescriptor is null.


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

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0