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

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

AuthenticationManager.RegisteredModules プロパティ

認証マネージャ登録されている認証モジュールの一覧を取得します

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

Public Shared ReadOnly Property
 RegisteredModules As IEnumerator
Dim value As IEnumerator

value = AuthenticationManager.RegisteredModules
public static IEnumerator RegisteredModules
 { get; }
public:
static property IEnumerator^ RegisteredModules {
    IEnumerator^ get ();
}
/** @property */
public static IEnumerator get_RegisteredModules
 ()
public static function get
 RegisteredModules () : IEnumerator

プロパティ
登録済み認証モジュール読み取り有効にする IEnumerator。

解説解説

RegisteredModules プロパティは、登録済み認証モジュールの一覧の読み取り有効にする IEnumerator インスタンス提供しますRegister メソッドは、一覧にモジュール追加し、Unregister メソッドは一覧からモジュール削除します

使用例使用例

RegisteredModules プロパティ使用して認証マネージャ登録されている認証モジュールの一覧を取得する例を次に示します詳細については、AuthenticationManager クラストピック参照してください

' Display registered authentication modules.
Private Shared Sub displayRegisteredModules()
  ' The AuthenticationManager calls all authentication modules sequentially
 
  ' until one of them responds with an authorization instance.  Show
  ' the current registered modules.
  Dim registeredModules As IEnumerator = AuthenticationManager.RegisteredModules
  Console.WriteLine(ControlChars.Cr + ControlChars.Lf + "The following
 authentication modules are now registered with the system:")
  While registeredModules.MoveNext()
    Console.WriteLine(ControlChars.Cr + " " + ControlChars.Lf
 + " Module : {0}", registeredModules.Current)
    Dim currentAuthenticationModule As IAuthenticationModule
 = CType(registeredModules.Current, IAuthenticationModule)
    Console.WriteLine(ControlChars.Tab + "  CanPreAuthenticate
 : {0}", currentAuthenticationModule.CanPreAuthenticate)
  End While
End Sub 'displayRegisteredModules
 

// Display registered authentication modules.
private static void displayRegisteredModules()
 
{
  // The AuthenticationManager calls all authentication modules sequentially
 
  // until one of them responds with an authorization instance.  Show
  // the current registered modules.
  IEnumerator registeredModules = AuthenticationManager.RegisteredModules; 
  Console.WriteLine("\r\nThe following authentication modules are now registered
 with the system:");
  while(registeredModules.MoveNext())
  {
    Console.WriteLine("\r \n Module : {0}",registeredModules.Current);
 
    IAuthenticationModule currentAuthenticationModule = (IAuthenticationModule)registeredModules.Current;
    Console.WriteLine("\t  CanPreAuthenticate : {0}",currentAuthenticationModule.CanPreAuthenticate);
 
  }      
}
// Display registered authentication modules.
static void displayRegisteredModules()
{
   
   // The AuthenticationManager calls all authentication modules sequentially
   // until one of them responds with an authorization instance.  Show
   // the current registered modules, for testing purposes.
   IEnumerator^ registeredModules = AuthenticationManager::RegisteredModules;
   Console::WriteLine( "\r\nThe following authentication modules are now registered
 with the system" );
   while ( registeredModules->MoveNext() )
   {
      Console::WriteLine( "\r \n Module : {0}", registeredModules->Current
 );
      IAuthenticationModule^ currentAuthenticationModule = dynamic_cast<IAuthenticationModule^>(registeredModules->Current);
      Console::WriteLine( "\t  CanPreAuthenticate : {0}", currentAuthenticationModule->CanPreAuthenticate
 );
   }
}


// Display registered authentication modules.
private static void DisplayRegisteredModules()
{
    // The AuthenticationManager calls all authentication modules 
    // sequentially until one of them responds with an authorization
 
    // instance.Show the current registered modules.
    IEnumerator registeredModules = 
        AuthenticationManager.get_RegisteredModules();
    Console.WriteLine("\r\nThe following authentication modules are now"
        + " registered with the system:");
    while (registeredModules.MoveNext()) {
        Console.WriteLine("\r \n Module : {0}", 
            registeredModules.get_Current());
        IAuthenticationModule currentAuthenticationModule = 
            ((IAuthenticationModule)(registeredModules.get_Current()));
        Console.WriteLine("\t  CanPreAuthenticate : {0}", 
            System.Convert.ToString(
            currentAuthenticationModule.get_CanPreAuthenticate()));
    }
} //DisplayRegisteredModules

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AuthenticationManager クラス
AuthenticationManager メンバ
System.Net 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS