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

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

ProfileManager.GetNumberOfProfiles メソッド

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

データ ソース内のプロファイルの数を取得します

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

Public Shared Function GetNumberOfProfiles
 ( _
    authenticationOption As ProfileAuthenticationOption _
) As Integer
Dim authenticationOption As ProfileAuthenticationOption
Dim returnValue As Integer

returnValue = ProfileManager.GetNumberOfProfiles(authenticationOption)
public static int GetNumberOfProfiles
 (
    ProfileAuthenticationOption authenticationOption
)
public:
static int GetNumberOfProfiles (
    ProfileAuthenticationOption authenticationOption
)
public static int GetNumberOfProfiles
 (
    ProfileAuthenticationOption authenticationOption
)
public static function GetNumberOfProfiles
 (
    authenticationOption : ProfileAuthenticationOption
) : int

パラメータ

authenticationOption

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

戻り値
データ ソース内のプロファイルの数。

解説解説
使用例使用例

構成済みapplicationName対すすべてのプロファイルプロファイル情報表示し該当するプロファイルの数を返すコード例次に示します

<%@ Page Language="VB" %>
<%@ Import Namespace="System.Web.Profile"
 %>
<script runat="server">

Public Sub Page_Load()
  TotalLabel.Text = ProfileManager.GetNumberOfProfiles(ProfileAuthenticationOption.All).ToString()
  GetProfiles()
End Sub

Private Sub GetProfiles()
  ProfileGrid.DataSource = ProfileManager.GetAllProfiles(ProfileAuthenticationOption.All)
  ProfileGrid.DataBind()
End Sub

</script>
<html>
<head>
<title>Sample: Find Profiles</title>
</head>
<body>

<form runat="server">
  <h3>Profile List</h3>

  <asp:Label id="TotalLabel" runat="server"
 text="0" /> Profiles found.<BR>

  <asp:GridView id="ProfileGrid" runat="server"
                CellPadding="2" CellSpacing="1"
 Gridlines="Both">
    <HeaderStyle BackColor="darkblue" ForeColor="white"
 />
  </asp:GridView>

</form>

</body>
</html>
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Web.Profile" %>
<script runat="server">

public void Page_Load()
{
  TotalLabel.Text = ProfileManager.GetNumberOfProfiles(ProfileAuthenticationOption.All).ToString();
  GetProfiles();
}

private void GetProfiles()
{
  ProfileGrid.DataSource = ProfileManager.GetAllProfiles(ProfileAuthenticationOption.All);
  ProfileGrid.DataBind();
}

</script>
<html>
<head>
<title>Sample: Find Profiles</title>
</head>
<body>

<form runat="server">
  <h3>Profile List</h3>

  <asp:Label id="TotalLabel" runat="server" text="0"
 /> Profiles found.<BR>

  <asp:GridView id="ProfileGrid" runat="server"
                CellPadding="2" CellSpacing="1" Gridlines="Both">
    <HeaderStyle BackColor="darkblue" ForeColor="white" />
  </asp:GridView>

</form>

</body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS