PagesSection.SmartNavigation 属性

定义

获取或设置一个值,该值指示是否启用智能导航。

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

属性值

true 如果启用了智能导航,则为否则,为 false. 默认值为 false

属性

示例

下面的代码示例演示如何使用该 SmartNavigation 属性。

// Get the current SmartNavigation property value.
Console.WriteLine(
    "Current SmartNavigation value: '{0}'",
    pagesSection.SmartNavigation);

// Set the SmartNavigation property to true.
pagesSection.SmartNavigation = true;
' Get the current SmartNavigation property value.
Console.WriteLine( _
    "Current SmartNavigation value: '{0}'", pagesSection.SmartNavigation)

' Set the SmartNavigation property to true.
pagesSection.SmartNavigation = True

注解

注释

智能导航需要Microsoft Internet Explorer 5.5 或更高版本。

适用于