ProfileSection.AutomaticSaveEnabled プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ProfileSection.AutomaticSaveEnabled プロパティの意味・解説 

ProfileSection.AutomaticSaveEnabled プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

ユーザー プロファイル情報への変更を、ページ終了時に自動的に保存するかどうかを決定する値を取得または設定します。

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

Public Property AutomaticSaveEnabled As
 Boolean
Dim instance As ProfileSection
Dim value As Boolean

value = instance.AutomaticSaveEnabled

instance.AutomaticSaveEnabled = value
public bool AutomaticSaveEnabled { get;
 set; }
public:
property bool AutomaticSaveEnabled {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_AutomaticSaveEnabled ()

/** @property */
public void set_AutomaticSaveEnabled (boolean
 value)
public function get AutomaticSaveEnabled
 () : boolean

public function set AutomaticSaveEnabled
 (value : boolean)

プロパティ値
プロファイル情報がページ終了時に自動的に保存される場合は true。それ以外の場合は false。既定値は true です。

解説解説

AutomaticSaveEnabled プロパティが false の場合、個々のプロファイルへの変更は、ProfileCommon クラスの Save メソッドがコードで呼び出されない限り保存されません。AutomaticSaveEnabled プロパティが true の場合、ProfileAutoSaving イベントを使用することでもコードで自動保存動作をオーバーライドできます。

使用例使用例

AutomaticSaveEnabled プロパティの使用方法のコード例を次に示します。このコード例は、ProfileSection クラスのトピックで取り上げているコード例の一部分です。

' Get the current AutomaticSaveEnabled property value.
Console.WriteLine( _
    "Current AutomaticSaveEnabled value: '{0}'", profileSection.AutomaticSaveEnabled)

' Set the AutomaticSaveEnabled property to false.
profileSection.AutomaticSaveEnabled = false

// Get the current AutomaticSaveEnabled property value.
Console.WriteLine(
    "Current AutomaticSaveEnabled value: '{0}'", profileSection.AutomaticSaveEnabled);

// Set the AutomaticSaveEnabled property to false.
profileSection.AutomaticSaveEnabled = false;

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ProfileSection クラス
ProfileSection メンバ
System.Web.Configuration 名前空間
ProfileModule
ProfileAutoSaving



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「ProfileSection.AutomaticSaveEnabled プロパティ」の関連用語

ProfileSection.AutomaticSaveEnabled プロパティのお隣キーワード
検索ランキング

   

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



ProfileSection.AutomaticSaveEnabled プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS