Partager via


HtmlWindow.NavigateToBookmark Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Changes the URL of the current page to a location that is specified by a named bookmark.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

Syntax

'Declaration
Public Sub NavigateToBookmark ( _
    bookmark As String _
)
public void NavigateToBookmark(
    string bookmark
)

Parameters

Remarks

This method changes the hash value of the current page's URL to the value that is specified by the bookmark parameter.

Changing the hash value of the URL may cause the page to scroll to an in-page anchor. Note that changing the hash value does not cause the browser to navigate away from the current page.

Internally, this method calls the CurrentBookmark property.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.