SessionStateSection.Providers プロパティ

定義

現在の ProviderSettingsCollection プロバイダーを取得します。

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

プロパティ値

SessionStateSection プロバイダーを格納しているコレクション。

属性

次のコード例は、 プロパティを取得する方法を Providers 示しています。 オブジェクトにアクセスする方法については、クラス トピックの SessionStateSection コード例を SessionStateSection 参照してください。

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

注釈

このプロパティは、 要素によって識別される構成タグに含まれる情報を providers 参照します。

適用対象