SiteMapSection.Providers プロパティ
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ProviderSettingsCollection オブジェクトの ProviderSettings コレクションを取得します。
public:
property System::Configuration::ProviderSettingsCollection ^ Providers { System::Configuration::ProviderSettingsCollection ^ get(); };
C#
[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
構成ファイルの 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);
}
' 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
セクションの 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 |