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

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

FormsAuthenticationConfiguration.Credentials プロパティ

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

ユーザー名パスワードの FormsAuthenticationCredentials コレクション取得します

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

Public ReadOnly Property
 Credentials As FormsAuthenticationCredentials
Dim instance As FormsAuthenticationConfiguration
Dim value As FormsAuthenticationCredentials

value = instance.Credentials
public FormsAuthenticationCredentials Credentials { get;
 }
public:
property FormsAuthenticationCredentials^ Credentials {
    FormsAuthenticationCredentials^ get ();
}
/** @property */
public FormsAuthenticationCredentials get_Credentials ()
public function get Credentials
 () : FormsAuthenticationCredentials

プロパティ
ユーザー名パスワード格納される FormsAuthenticationCredentials コレクション

解説解説
使用例使用例

Credentials プロパティへのアクセス方法次のコード例示しますセクション取得する方法については、FormsAuthenticationConfiguration クラストピックにあるコード例参照してください

' Get the current Credentials.
  Dim currentCredentials _
  As FormsAuthenticationCredentials = _
  formsAuthentication.Credentials

Dim credentials As New StringBuilder()
' Get all the credentials.
Dim i As System.Int32
For i = 0 To currentCredentials.Users.Count
 - 1
      credentials.Append(("Name: " + _
      currentCredentials.Users(i).Name + _
      " Password: " + _
      currentCredentials.Users(i).Password))
   credentials.Append(Environment.NewLine)
  Next i
// Get the current Credentials.
FormsAuthenticationCredentials currentCredentials = 
    formsAuthentication.Credentials;

StringBuilder credentials = new StringBuilder();
// Get all the credentials.
for (System.Int32 i = 0; i < currentCredentials.Users.Count;
 i++)
{
    credentials.Append("Name: " + 
        currentCredentials.Users[i].Name + 
        " Password: " + 
        currentCredentials.Users[i].Password);
    credentials.Append(Environment.NewLine);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS