ProfileProvider.GetNumberOfInactiveProfiles メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
派生クラスでオーバーライドされた場合、指定した日付以前に最後のアクティビティの日付が発生したプロファイルの数を返します。
public:
abstract int GetNumberOfInactiveProfiles(System::Web::Profile::ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate);
public abstract int GetNumberOfInactiveProfiles(System.Web.Profile.ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate);
abstract member GetNumberOfInactiveProfiles : System.Web.Profile.ProfileAuthenticationOption * DateTime -> int
Public MustOverride Function GetNumberOfInactiveProfiles (authenticationOption As ProfileAuthenticationOption, userInactiveSinceDate As DateTime) As Integer
パラメーター
- authenticationOption
- ProfileAuthenticationOption
匿名、認証、または両方の種類のプロファイルを返すかどうかを指定する、 ProfileAuthenticationOption 値の 1 つ。
- userInactiveSinceDate
- DateTime
非アクティブと見なされるユーザー プロファイルを識別する DateTime 。 ユーザー プロファイルの LastActivityDate がこの日時以前に発生した場合、プロファイルは非アクティブと見なされます。
返品
指定した日付以前に最後のアクティビティの日付が発生したプロファイルの数。
例
次のコード例は、 GetNumberOfInactiveProfiles メソッドの実装のメソッド シグネチャを示しています。 完全な ProfileProvider 実装の例については、「 方法: プロファイル プロバイダーの例をビルドして実行する」を参照してください。
public override int GetNumberOfInactiveProfiles(
ProfileAuthenticationOption authenticationOption,
DateTime userInactiveSinceDate)
{
return 0;
}
Public Overrides Function GetNumberOfInactiveProfiles( _
ByVal authenticationOption As ProfileAuthenticationOption, _
ByVal userInactiveSinceDate As DateTime) As Integer
Return 0
End Function
注釈
GetNumberOfInactiveProfiles メソッドは、未使用のすべてのユーザー プロファイルの数を取得するために使用されます。 構成ファイルで指定された applicationName のデータのみが返されます。
authenticationOption パラメーターは、匿名プロファイルのみ、認証済みプロファイルのみ、またはすべてのプロファイルを検索するかどうかを指定します。 検索されたプロファイルのうち、指定されたLastActivityDateパラメーター値の前に発生したuserInactiveSinceDateを持つプロファイルがカウントされます。