ProfileProvider.DeleteInactiveProfiles メソッドとは? わかりやすく解説

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

ProfileProvider.DeleteInactiveProfiles メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

派生クラスでオーバーライドされた場合、最後のアクティビティの日付が指定した日付以前であるプロファイルについて、すべてのユーザー プロファイル データを削除します。

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

Public MustOverride Function
 DeleteInactiveProfiles ( _
    authenticationOption As ProfileAuthenticationOption, _
    userInactiveSinceDate As DateTime _
) As Integer
Dim instance As ProfileProvider
Dim authenticationOption As ProfileAuthenticationOption
Dim userInactiveSinceDate As DateTime
Dim returnValue As Integer

returnValue = instance.DeleteInactiveProfiles(authenticationOption, userInactiveSinceDate)
public abstract int DeleteInactiveProfiles
 (
    ProfileAuthenticationOption authenticationOption,
    DateTime userInactiveSinceDate
)
public:
virtual int DeleteInactiveProfiles (
    ProfileAuthenticationOption authenticationOption, 
    DateTime userInactiveSinceDate
) abstract
public abstract int DeleteInactiveProfiles
 (
    ProfileAuthenticationOption authenticationOption, 
    DateTime userInactiveSinceDate
)
public abstract function DeleteInactiveProfiles
 (
    authenticationOption : ProfileAuthenticationOption, 
    userInactiveSinceDate : DateTime
) : int

パラメータ

authenticationOption

プロファイルの種類 (匿名、認証、またはその両方) を指定する ProfileAuthenticationOption 値の 1 つが削除されます。

userInactiveSinceDate

アクティブでないと見なすユーザー プロファイルを識別する DateTime。ユーザー プロファイルの LastActivityDate 値が、この日時またはそれ以前に発生している場合、このプロファイルは無効と見なされます。

戻り値
データ ソースから削除されたプロファイルの数。

解説解説
使用例使用例

DeleteInactiveProfiles メソッドを実装するために必要なメソッド シグネチャを次のコード例に示します。ProfileProvider の完全な実装例については、「方法 : プロファイル プロバイダの構築と実行の例」を参照してください。

Public Overrides Function
 DeleteInactiveProfiles( _
ByVal authenticationOption As ProfileAuthenticationOption,
 _
ByVal userInactiveSinceDate As DateTime) As
 Integer

  Return 0
End Function
public override int DeleteInactiveProfiles(
    ProfileAuthenticationOption authenticationOption,
    DateTime userInactiveSinceDate)
{
    return 0;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

ProfileProvider.DeleteInactiveProfiles メソッドのお隣キーワード
検索ランキング

   

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



ProfileProvider.DeleteInactiveProfiles メソッドのページの著作権

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

©2026 GRAS Group, Inc.RSS