DesignerSerializerAttribute クラス
アセンブリ: System (system.dll 内)

<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Interface, AllowMultiple:=True, Inherited:=True)> _ Public NotInheritable Class DesignerSerializerAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple=true, Inherited=true)] public sealed class DesignerSerializerAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Interface, AllowMultiple=true, Inherited=true)] public ref class DesignerSerializerAttribute sealed : public Attribute

DesignerSerializerAttribute は、デザイナ シリアル化マネージャに対して、オブジェクトの値をシリアル化するときに使用する必要のある特定の型のシリアライザを示す方法を提供します。これにより、たとえばカスタム型をシリアル化できるシリアライザを指定できます。この属性をクラスに配置して、クラスのシリアル化に使用するシリアル化オブジェクトを指定します。

DesignerSerializerAttribute を使用して、シリアライザをコンポーネントに関連付けるコードの例を次に示します。
<DesignerSerializerAttribute(GetType(ExampleSerializer), GetType(CodeDomSerializer))> _ Public Class ExampleControl Inherits System.Windows.Forms.UserControl Public Sub New() End Sub End Class
[DesignerSerializerAttribute(typeof(ExampleSerializer), typeof(CodeDomSerializer))] public class ExampleControl : System.Windows.Forms.UserControl { public ExampleControl() { } }

System.Attribute
System.ComponentModel.Design.Serialization.DesignerSerializerAttribute


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- DesignerSerializerAttribute クラスのページへのリンク