DesignerSerializerAttribute クラスとは? わかりやすく解説

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

DesignerSerializerAttribute クラス

この属性適用される型の値をシリアル化するためにシリアル化マネージャ使用するシリアライザを示します。このクラス継承できません。

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

<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Interface,
 AllowMultiple:=True, Inherited:=True)> _
Public NotInheritable Class
 DesignerSerializerAttribute
    Inherits Attribute
Dim instance As DesignerSerializerAttribute
[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
/** @attribute AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface,
 AllowMultiple=true, Inherited=true) */ 
public final class DesignerSerializerAttribute
 extends Attribute
AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple=true,
 Inherited=true) 
public final class DesignerSerializerAttribute
 extends 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()
    {

    }
}
[DesignerSerializerAttribute(ExampleSerializer::typeid,CodeDomSerializer::typeid)]
public ref class ExampleControl: public
 UserControl
{
public:
   ExampleControl()
   {

   }
};
/** @attribute DesignerSerializerAttribute(ExampleSerializer.class,
 
    CodeDomSerializer.class)
 */
public class ExampleControl extends System.Windows.Forms.UserControl
{
    public ExampleControl()
    {
    } //ExampleControl
} //ExampleControl    
継承階層継承階層
System.Object
   System.Attribute
    System.ComponentModel.Design.Serialization.DesignerSerializerAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DesignerSerializerAttribute メンバ
System.ComponentModel.Design.Serialization 名前空間
その他の技術情報
デザイナシリアル化概要



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「DesignerSerializerAttribute クラス」の関連用語

DesignerSerializerAttribute クラスのお隣キーワード
検索ランキング

   

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



DesignerSerializerAttribute クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS