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

プロパティ値

true ASP.NET サイト マップ機能が有効になっている場合。それ以外の場合は 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 ナビゲーション機能にアクセスできるかどうかを示すブール値を返します。

適用対象