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

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

PersistenceModeAttribute クラス

ASP.NET サーバー コントロールプロパティまたはイベントASP.NET ページ永続化する方法指定するメタデータ属性定義します。このクラス継承できません。

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

<AttributeUsageAttribute(AttributeTargets.All)> _
Public NotInheritable Class
 PersistenceModeAttribute
    Inherits Attribute
Dim instance As PersistenceModeAttribute
[AttributeUsageAttribute(AttributeTargets.All)] 
public sealed class PersistenceModeAttribute
 : Attribute
[AttributeUsageAttribute(AttributeTargets::All)] 
public ref class PersistenceModeAttribute sealed
 : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.All) */ 
public final class PersistenceModeAttribute
 extends Attribute
AttributeUsageAttribute(AttributeTargets.All) 
public final class PersistenceModeAttribute
 extends Attribute
解説解説

属性使用方法については、「属性使用したメタデータ拡張」を参照してください

メモメモ

Web フォーム デザイナは、プロパティ永続化のためにオプションとして Windows フォーム コントロールによって公開される ResetPropertyName メソッドサポートしていません。サーバー コントロールは、ControlPersister クラスによって提供されるメソッド使用してシリアル化されます。これらのメソッド実装は、DefaultValueAttribute、PersistenceModeAttribute、DesignerSerializationVisibilityAttribute などのメタデータ属性によって実行されます。

使用例使用例
<PersistenceMode(PersistenceMode.InnerProperty), TemplateContainer(GetType(TemplateItem))>
 Public Property MessageTemplate() As
 ITemplate
   Get
      Return _messageTemplate
   End Get
   Set(ByVal Value As ITemplate)
      _messageTemplate = Value
   End Set
End Property

[PersistenceMode(PersistenceMode.InnerProperty),
TemplateContainer(typeof(TemplateItem))]
public ITemplate MessageTemplate {
   get {
      return _messageTemplate;
   }
   set {
      _messageTemplate = value;
   }
}
継承階層継承階層
System.Object
   System.Attribute
    System.Web.UI.PersistenceModeAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PersistenceModeAttribute メンバ
System.Web.UI 名前空間
Attribute


このページでは「.NET Framework クラス ライブラリ リファレンス」からPersistenceModeAttribute クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からPersistenceModeAttribute クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPersistenceModeAttribute クラス を検索

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

辞書ショートカット

すべての辞書の索引

「PersistenceModeAttribute クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS