Share via


RoleManagerSection.Providers プロパティ

定義

ProviderSettingsCollection 要素の ProviderSettings オブジェクトを取得します。

public:
 property System::Configuration::ProviderSettingsCollection ^ Providers { System::Configuration::ProviderSettingsCollection ^ get(); };
[System.Configuration.ConfigurationProperty("providers")]
public System.Configuration.ProviderSettingsCollection Providers { get; }
[<System.Configuration.ConfigurationProperty("providers")>]
member this.Providers : System.Configuration.ProviderSettingsCollection
Public ReadOnly Property Providers As ProviderSettingsCollection

プロパティ値

ProviderSettingsCollection

構成ファイルの providers セクションの roleManager サブセクション内で定義されるプロバイダー設定を格納している ProviderSettingsCollection

属性

次のコード例は、このプロパティの使用方法を Providers 示しています。 このコード例は、RoleManagerSection クラスのために提供されている大規模な例の一部です。

// Display elements of the Providers collection property.
foreach (ProviderSettings providerItem in configSection.Providers)
{
  Console.WriteLine();
  Console.WriteLine("Provider Details:");
  Console.WriteLine("Name: {0}", providerItem.Name);
  Console.WriteLine("Type: {0}", providerItem.Type);
}
' Display elements of the Providers collection property.
For Each providerItem As ProviderSettings In configSection.Providers()
  Console.WriteLine()
  Console.WriteLine("Provider Details:")
  Console.WriteLine("Name: {0}", providerItem.Name)
  Console.WriteLine("Type: {0}", providerItem.Type)
Next

注釈

ロール管理プロバイダーは、サイトのロールの種類へのアクセスを提供するコンポーネントです。 ロール管理プロバイダーは、構成ファイルの providers セクションの roleManager サブセクションで指定できます。

このプロパティは DefaultProvider 、既定で使用されるプロバイダーを指定します。

適用対象