Share via


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 或更高版本。

适用于