This documentation is archived and is not being maintained.

RootDesignerSerializerAttribute Class

NOTE: This API is now obsolete. The non-obsolete alternative is DesignerSerializerAttribute.

Indicates the base serializer to use for a root designer object. This class cannot be inherited.

Namespace:  System.ComponentModel.Design.Serialization
Assembly:  System (in System.dll)

<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Interface, AllowMultiple := True,  _
	Inherited := True)> _
<ObsoleteAttribute("This attribute has been deprecated. Use DesignerSerializerAttribute instead.  For example, to specify a root designer for CodeDom, use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)).")> _
Public NotInheritable Class RootDesignerSerializerAttribute _
	Inherits Attribute
Dim instance As RootDesignerSerializerAttribute

RootDesignerSerializerAttribute indicates the serializer to use when the serialization manager serializes the design document, and whether the specified serializer supports automatic reloading of the design document without first completely disposing of the document.

This attribute contains the following significant members:

  • SerializerTypeName indicates what serialization object to use to serialize the class at design time.

  • SerializerBaseTypeName indicates the fully qualified name of the serialization object's base type.

  • Reloadable indicates whether the serializer supports reloading a design document without user interaction to open a new designer view.

The following example code applies a RootDesignerSerializerAttribute to a component.

<DesignerSerializer(GetType(MyCodeDomSerializer), GetType(CodeDomSerializer))> _
Public Class MyComponent
   Inherits Component
   Private localProperty As String = "Component Property Value" 

   Public Property LocalProp() As String 
         Return localProperty
      End Get 
      Set(ByVal Value As String)
         localProperty = Value
      End Set 
   End Property 
End Class 'MyComponent


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 1.1, 1.0
Obsolete (compiler warning) in 3.5
Obsolete (compiler warning) in 3.5 SP1
Obsolete (compiler warning) in 3.0
Obsolete (compiler warning) in 3.0 SP1
Obsolete (compiler warning) in 3.0 SP2
Obsolete (compiler warning) in 2.0
Obsolete (compiler warning) in 2.0 SP1
Obsolete (compiler warning) in 2.0 SP2