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

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

ProfileAutoSaveEventArgs.ContinueWithProfileAutoSave プロパティ

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

ProfileModule がユーザー プロファイル自動保存するかどうかを示す値を取得または設定します

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

Public Property ContinueWithProfileAutoSave
 As Boolean
Dim instance As ProfileAutoSaveEventArgs
Dim value As Boolean

value = instance.ContinueWithProfileAutoSave

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

/** @property */
public void set_ContinueWithProfileAutoSave
 (boolean value)
public function get ContinueWithProfileAutoSave
 () : boolean

public function set ContinueWithProfileAutoSave
 (value : boolean)

プロパティ
ProfileModuleユーザー プロファイル自動保存する場合trueそれ以外場合false既定値true です。

解説解説

Save メソッドは、プリミティブ型文字列、または DateTime オブジェクト構成されプロパティ値が変更されたかどうかを、ユーザー プロファイル内の各 SettingsPropertyValue の IsDirty プロパティ値をチェックすることで、自動的に判断しますSave メソッドは、カスタム クラス変更されたかどうかを明示的に判断することはできません。カスタム オブジェクト変更されたかどうかは、ProfileAutoSaving イベント使用して判断できますその上でオブジェクト変更されている場合自動保存続行し変更されていない場合自動保存キャンセルできます

プロファイル自動保存処理をキャンセルする場合は、ProfileAutoSaving イベント内の ContinueWithProfileAutoSave プロパティfalse設定しますそれ以外場合は、ContinueWithProfileAutoSave プロパティtrue設定します

ProfileAutoSaving イベントに対して複数のサブスクライバが存在する場合ありますProfileModule は、ContinueWithProfileAutoSave プロパティ最後に設定された値を使用します。したがってProfileAutoSaving イベント内では、自動保存キャンセルする続行するかにかかわらず ContinueWithProfileAutoSave プロパティ明示的に設定して以前のサブスクライバの設定した値が上書きされるようにすることをお勧めます。

使用例使用例

ASP.NET アプリケーションの Global.asax ファイル含まれる ProfileAutoSaving イベント次のコード例示します

Public Sub Profile_ProfileAutoSaving(sender
 As Object, args As ProfileAutoSaveEventArgs)
  If Profile.Cart.HasChanged Then
    args.ContinueWithProfileAutoSave = True
  Else
    args.ContinueWithProfileAutoSave = False
  End If
End Sub
public void Profile_ProfileAutoSaving(object
 sender, ProfileAutoSaveEventArgs args)
{
  if (Profile.Cart.HasChanged)
    args.ContinueWithProfileAutoSave = true;
  else
    args.ContinueWithProfileAutoSave = false;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



ProfileAutoSaveEventArgs.ContinueWithProfileAutoSave プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS