다음을 통해 공유


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입니다.

특성

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 줍니다 Enabled . 이 코드 예제는 클래스에 제공된 더 큰 예제의 SiteMapSection 일부입니다.

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

설명

이 속성은 Enabled 런타임에 ASP.NET 탐색 기능에 액세스할 수 있는지 여부를 나타내는 부울 값을 반환합니다.

적용 대상