Share via


SiteMapSection.Enabled プロパティ

定義

ASP.NET のサイト マップ機能が有効かどうかを示す値を取得または設定します。

public:
 property bool Enabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enabled", DefaultValue=true)]
public bool Enabled { get; set; }
[<System.Configuration.ConfigurationProperty("enabled", DefaultValue=true)>]
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

プロパティ値

ASP.NET のサイト マップ機能が有効な場合は true。それ以外の場合は false。 既定値は、true です。

属性

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

// Display Enabled value.
Console.WriteLine("Enabled: {0}", configSection.Enabled);
' Display Enabled value.
Console.WriteLine("Enabled: {0}", configSection.Enabled)

注釈

プロパティは Enabled 、実行時に ASP.NET ナビゲーション機能にアクセスできるかどうかを示すブール値を返します。

適用対象