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

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

ProfileProvider.FindInactiveProfilesByUserName メソッド

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

派生クラスオーバーライドされた場合最後アクティビティ日付指定した日付またはそれ以前であり、指定されユーザー名一致するユーザー名プロファイルに関するプロファイル情報取得します

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

Public MustOverride Function
 FindInactiveProfilesByUserName ( _
    authenticationOption As ProfileAuthenticationOption, _
    usernameToMatch As String, _
    userInactiveSinceDate As DateTime, _
    pageIndex As Integer, _
    pageSize As Integer, _
    <OutAttribute> ByRef totalRecords As
 Integer _
) As ProfileInfoCollection
Dim instance As ProfileProvider
Dim authenticationOption As ProfileAuthenticationOption
Dim usernameToMatch As String
Dim userInactiveSinceDate As DateTime
Dim pageIndex As Integer
Dim pageSize As Integer
Dim totalRecords As Integer
Dim returnValue As ProfileInfoCollection

returnValue = instance.FindInactiveProfilesByUserName(authenticationOption, usernameToMatch,
 userInactiveSinceDate, pageIndex, pageSize, totalRecords)
public abstract ProfileInfoCollection FindInactiveProfilesByUserName
 (
    ProfileAuthenticationOption authenticationOption,
    string usernameToMatch,
    DateTime userInactiveSinceDate,
    int pageIndex,
    int pageSize,
    out int totalRecords
)
public:
virtual ProfileInfoCollection^ FindInactiveProfilesByUserName (
    ProfileAuthenticationOption authenticationOption, 
    String^ usernameToMatch, 
    DateTime userInactiveSinceDate, 
    int pageIndex, 
    int pageSize, 
    [OutAttribute] int% totalRecords
) abstract
public abstract ProfileInfoCollection FindInactiveProfilesByUserName
 (
    ProfileAuthenticationOption authenticationOption, 
    String usernameToMatch, 
    DateTime userInactiveSinceDate, 
    int pageIndex, 
    int pageSize, 
    /** @attribute OutAttribute() */ /** @ref */ int totalRecords
)
JScript では、値型引数参照渡しされません。

パラメータ

authenticationOption

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

usernameToMatch

検索するユーザー名

userInactiveSinceDate

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

pageIndex

取得する結果ページインデックス

pageSize

取得する結果ページサイズ

totalRecords

このメソッド返されるときに、プロファイル総数格納します

戻り値
指定されusernameToMatch パラメータユーザー名一致していて、無効なプロファイルに関するユーザー プロファイル情報格納している ProfileInfoCollection。

解説解説

FindInactiveProfilesByUserName メソッドは、指定されusernameToMatch パラメータユーザー名一致しており、使用されていないユーザー プロファイルに関するプロファイル情報取得使用されます。構成ファイル指定されapplicationNameデータだけが返されます。authenticationOption パラメータは、検索対象プロファイル (匿名プロファイルのみ、認証済みプロファイルのみ、またはすべてのプロファイル) を指定します検索されプロファイルのうち、指定されuserInactiveSinceDate パラメータ値またはそれ以前LastActivityDate を持つプロファイル返されます。

データ ソースワイルドカード文字などの他の検索機能サポートしている場合ユーザー名対す検索機能拡張できます

FindInactiveProfilesByUserName によって返される結果は、pageIndex パラメータおよび pageSize パラメータによって制限されます。pageSize パラメータには、ProfileInfoCollection返す ProfileInfo オブジェクト最大数を指定しますpageIndex パラメータは、取得する結果ページ識別します。最初のページは 0 で表されます。totalRecords パラメータは、authenticationOption パラメータuserInactiveSinceDate パラメータ基づいて構成済みapplicationName に対してアクティブでないユーザー プロファイル合計数に設定されout パラメータです。たとえば、構成済みapplicationName13 人のユーザー存在しpageIndex 値が 1 で pageSize が 5 である場合ProfileInfoCollection戻り値には 6 番目から 10 番目までのアクティブでないプロファイル含まれます。totalRecords パラメータは、13設定されます。

使用例使用例

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

Public Overrides Function
 FindInactiveProfilesByUserName( _
ByVal authenticationOption As ProfileAuthenticationOption,
 _
ByVal usernameToMatch As String,
 _
ByVal userInactiveSinceDate As DateTime, _
ByVal pageIndex As Integer,
 _
ByVal pageSize As Integer,
 _
 ByRef totalRecords As Integer)
 As ProfileInfoCollection

  totalRecords = 0

  Return New ProfileInfoCollection()
End Function
public override ProfileInfoCollection FindInactiveProfilesByUserName(
    ProfileAuthenticationOption authenticationOption,
    string usernameToMatch,
    DateTime userInactiveSinceDate,
    int pageIndex,
    int pageSize,
    out int totalRecords)
{
    totalRecords = 0;

    return new ProfileInfoCollection();
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



ProfileProvider.FindInactiveProfilesByUserName メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS