RootDesignerSerializerAttributeとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > RootDesignerSerializerAttributeの意味・解説 

RootDesignerSerializerAttribute クラス

メモ : このクラスは、互換性のために残されています。 旧式でない代替が必要な場合は、DesignerSerializerAttribute を使用してください。

ルート デザイナ オブジェクトのために使用する基本シリアライザを示します。このクラスは継承できません。

名前空間: System.ComponentModel.Design.Serialization
アセンブリ: System (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)).  http://go.microsoft.com/fwlink/?linkid=14202")> _
Public NotInheritable Class
 RootDesignerSerializerAttribute
    Inherits Attribute
Dim instance As RootDesignerSerializerAttribute
[AttributeUsageAttribute(AttributeTargets.Class|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)).  http://go.microsoft.com/fwlink/?linkid=14202")] 
public sealed class RootDesignerSerializerAttribute
 : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Interface, AllowMultiple=true,
 Inherited=true)] 
[ObsoleteAttribute(L"This attribute has been deprecated. Use DesignerSerializerAttribute
 instead.  For example, to specify a root designer for CodeDom,
 use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)).  http://go.microsoft.com/fwlink/?linkid=14202")] 
public ref class RootDesignerSerializerAttribute
 sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface,
 AllowMultiple=true, Inherited=true) */ 
/** @attribute ObsoleteAttribute("This attribute has been deprecated. Use DesignerSerializerAttribute
 instead.  For example, to specify a root designer for CodeDom,
 use DesignerSerializerAttribute(...,typeof(TypeCodeDomSerializer)).  http://go.microsoft.com/fwlink/?linkid=14202") */ 
public final class RootDesignerSerializerAttribute
 extends Attribute
AttributeUsageAttribute(AttributeTargets.Class|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)).  http://go.microsoft.com/fwlink/?linkid=14202") 
public final class RootDesignerSerializerAttribute
 extends Attribute
解説解説
使用例使用例

RootDesignerSerializerAttribute をコンポーネントに適用するコード例を次に示します。

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

   Public Property LocalProp() As
 String
      Get
         Return localProperty
      End Get
      Set(ByVal Value As
 String)
         localProperty = Value
      End Set
   End Property
End Class 'MyComponent
[DesignerSerializer(typeof(MyCodeDomSerializer), typeof(CodeDomSerializer))]
public class MyComponent : Component {
    private string localProperty = "Component
 Property Value";
    public string LocalProperty {
        get {
            return localProperty;
        }
        set {
            localProperty = value;
        }
    }
}
/** @attribute DesignerSerializer(MyCodeDomSerializer.class,
  CodeDomSerializer.class)
 */

public class MyComponent extends Component
{
    private String localProperty = "Component Property Value";
      
    /** @property 
     */
    public String get_LocalProperty()
    {
        return localProperty;
    } //get_LocalProperty

    /** @property 
     */
    public void set_LocalProperty (String value
 )
    {
        localProperty = value;
    } //set_LocalProperty
} //MyComponent
継承階層継承階層
System.Object
   System.Attribute
    System.ComponentModel.Design.Serialization.RootDesignerSerializerAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RootDesignerSerializerAttribute メンバ
System.ComponentModel.Design.Serialization 名前空間
DesignerSerializerAttribute クラス

RootDesignerSerializerAttribute コンストラクタ (String, String, Boolean)

属性を指定して、RootDesignerSerializerAttribute クラスの新しいインスタンスを初期化します。

名前空間: System.ComponentModel.Design.Serialization
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    serializerTypeName As String, _
    baseSerializerTypeName As String, _
    reloadable As Boolean _
)
Dim serializerTypeName As String
Dim baseSerializerTypeName As String
Dim reloadable As Boolean

Dim instance As New RootDesignerSerializerAttribute(serializerTypeName,
 baseSerializerTypeName, reloadable)
public RootDesignerSerializerAttribute (
    string serializerTypeName,
    string baseSerializerTypeName,
    bool reloadable
)
public:
RootDesignerSerializerAttribute (
    String^ serializerTypeName, 
    String^ baseSerializerTypeName, 
    bool reloadable
)
public RootDesignerSerializerAttribute (
    String serializerTypeName, 
    String baseSerializerTypeName, 
    boolean reloadable
)
public function RootDesignerSerializerAttribute
 (
    serializerTypeName : String, 
    baseSerializerTypeName : String, 
    reloadable : boolean
)

パラメータ

serializerTypeName

シリアライザのデータ型の完全修飾名。

baseSerializerTypeName

シリアライザの基本型の名前。シリアライザの基本型がすべて異なっているため、1 つのクラスに複数のシリアライザを組み込むことができます。

reloadable

このシリアライザがドキュメントの動的な再読み込みをサポートする場合は true。それ以外の場合は false。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RootDesignerSerializerAttribute クラス
RootDesignerSerializerAttribute メンバ
System.ComponentModel.Design.Serialization 名前空間

RootDesignerSerializerAttribute コンストラクタ (String, Type, Boolean)

属性を指定して、RootDesignerSerializerAttribute クラスの新しいインスタンスを初期化します。

名前空間: System.ComponentModel.Design.Serialization
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    serializerTypeName As String, _
    baseSerializerType As Type, _
    reloadable As Boolean _
)
Dim serializerTypeName As String
Dim baseSerializerType As Type
Dim reloadable As Boolean

Dim instance As New RootDesignerSerializerAttribute(serializerTypeName,
 baseSerializerType, reloadable)
public RootDesignerSerializerAttribute (
    string serializerTypeName,
    Type baseSerializerType,
    bool reloadable
)
public:
RootDesignerSerializerAttribute (
    String^ serializerTypeName, 
    Type^ baseSerializerType, 
    bool reloadable
)
public RootDesignerSerializerAttribute (
    String serializerTypeName, 
    Type baseSerializerType, 
    boolean reloadable
)
public function RootDesignerSerializerAttribute
 (
    serializerTypeName : String, 
    baseSerializerType : Type, 
    reloadable : boolean
)

パラメータ

serializerTypeName

シリアライザのデータ型の完全修飾名。

baseSerializerType

シリアライザの基本型の名前。シリアライザの基本型がすべて異なっているため、1 つのクラスに複数のシリアライザを組み込むことができます。

reloadable

このシリアライザがドキュメントの動的な再読み込みをサポートする場合は true。それ以外の場合は false。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RootDesignerSerializerAttribute クラス
RootDesignerSerializerAttribute メンバ
System.ComponentModel.Design.Serialization 名前空間

RootDesignerSerializerAttribute コンストラクタ

属性を指定して、RootDesignerSerializerAttribute クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
RootDesignerSerializerAttribute (String, String, Boolean) 属性を指定して、RootDesignerSerializerAttribute クラスの新しいインスタンスを初期化します。
RootDesignerSerializerAttribute (String, Type, Boolean) 属性を指定して、RootDesignerSerializerAttribute クラスの新しいインスタンスを初期化します。
RootDesignerSerializerAttribute (Type, Type, Boolean) 属性を指定して、RootDesignerSerializerAttribute クラスの新しいインスタンスを初期化します。
参照参照

関連項目

RootDesignerSerializerAttribute クラス
RootDesignerSerializerAttribute メンバ
System.ComponentModel.Design.Serialization 名前空間

RootDesignerSerializerAttribute コンストラクタ (Type, Type, Boolean)

属性を指定して、RootDesignerSerializerAttribute クラスの新しいインスタンスを初期化します。

名前空間: System.ComponentModel.Design.Serialization
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    serializerType As Type, _
    baseSerializerType As Type, _
    reloadable As Boolean _
)
Dim serializerType As Type
Dim baseSerializerType As Type
Dim reloadable As Boolean

Dim instance As New RootDesignerSerializerAttribute(serializerType,
 baseSerializerType, reloadable)
public RootDesignerSerializerAttribute (
    Type serializerType,
    Type baseSerializerType,
    bool reloadable
)
public:
RootDesignerSerializerAttribute (
    Type^ serializerType, 
    Type^ baseSerializerType, 
    bool reloadable
)
public RootDesignerSerializerAttribute (
    Type serializerType, 
    Type baseSerializerType, 
    boolean reloadable
)
public function RootDesignerSerializerAttribute
 (
    serializerType : Type, 
    baseSerializerType : Type, 
    reloadable : boolean
)

パラメータ

serializerType

シリアライザのデータ型。

baseSerializerType

シリアライザの基本型。シリアライザの基本型がすべて異なっているため、1 つのクラスに複数のシリアライザを組み込むことができます。

reloadable

このシリアライザがドキュメントの動的な再読み込みをサポートする場合は true。それ以外の場合は false。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RootDesignerSerializerAttribute クラス
RootDesignerSerializerAttribute メンバ
System.ComponentModel.Design.Serialization 名前空間

RootDesignerSerializerAttribute プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Reloadable ルート シリアライザが、デザイナ ホストを解放することなく実行されるデザイン ドキュメントの再読み込みをサポートするかどうかを示す値を取得します。
パブリック プロパティ SerializerBaseTypeName シリアライザの基本型の完全修飾型名を取得します。
パブリック プロパティ SerializerTypeName シリアライザの完全修飾型名を取得します。
パブリック プロパティ TypeId オーバーライドされます。 この属性型の一意の ID を取得します。
参照参照

関連項目

RootDesignerSerializerAttribute クラス
System.ComponentModel.Design.Serialization 名前空間
DesignerSerializerAttribute クラス

RootDesignerSerializerAttribute メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスのハッシュ コードを返します。 ( Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 ( Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

RootDesignerSerializerAttribute クラス
System.ComponentModel.Design.Serialization 名前空間
DesignerSerializerAttribute クラス

RootDesignerSerializerAttribute メンバ

ルート デザイナ オブジェクトのために使用する基本シリアライザを示します。このクラスは継承できません。

RootDesignerSerializerAttribute データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド RootDesignerSerializerAttribute オーバーロードされます。 属性を指定して、RootDesignerSerializerAttribute クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Reloadable ルート シリアライザが、デザイナ ホストを解放することなく実行されるデザイン ドキュメントの再読み込みをサポートするかどうかを示す値を取得します。
パブリック プロパティ SerializerBaseTypeName シリアライザの基本型の完全修飾型名を取得します。
パブリック プロパティ SerializerTypeName シリアライザの完全修飾型名を取得します。
パブリック プロパティ TypeId オーバーライドされます。 この属性型の一意の ID を取得します。
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスのハッシュ コードを返します。 (Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

RootDesignerSerializerAttribute クラス
System.ComponentModel.Design.Serialization 名前空間
DesignerSerializerAttribute クラス



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「RootDesignerSerializerAttribute」の関連用語

RootDesignerSerializerAttributeのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



RootDesignerSerializerAttributeのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS