SiteMapSection.Providers プロパティ

定義

ProviderSettingsCollection オブジェクトの ProviderSettings コレクションを取得します。

C#
[System.Configuration.ConfigurationProperty("providers")]
public System.Configuration.ProviderSettingsCollection Providers { get; }

プロパティ値

ProviderSettingsCollection

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

属性

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

C#
// 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);
}

注釈

サイト マップ プロバイダーは、サイトのナビゲーション構造へのアクセスを提供するコンポーネントです。 サイト マップ プロバイダーは、構成ファイルの providers セクションの siteMap サブセクションで指定できます。

DefaultProvider既定で使用されるプロバイダーのプロパティ名。

適用対象

製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8