Compartilhar via


IXRHyperlinkButton::SetNavigateUri (Compact 2013)

3/28/2014

This method sets the uniform resource identifier (URI) of the web page that you would like to open the user clicks this hyperlink control.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetNavigateUri(
    const WCHAR* szNavigateUri
) = 0;

Parameters

  • szNavigateUri
    [in] The URI of the web page that you would like to open when the user clicks this hyperlink control.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The URI must be either an absolute URI (for example, "https://www.contoso.com") or a URI path relative to the application (for example, "/new/index.htm").

The OnClick event handler code can retrieve the URI to open in a web page by calling IXRHyperlinkButton::GetNavigateUri.

.NET Framework Equivalent

System.Windows.Controls.HyperlinkButton.NavigateUri

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRHyperlinkButton