次の方法で共有


IXRHyperlinkButton::GetNavigateUri (Compact 2013)

3/28/2014

This method retrieves the uniform resource identifier (URI) that your custom code can open in a web page when the user clicks this hyperlink control.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetNavigateUri(
    BSTR* pbstrNavigateUri
) = 0;

Parameters

  • pbstrNavigateUri
    [out] Pointer to the URI that your custom code can open in a web page 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").

You can call this method in an event handler for the OnClick event and use the URI in pbstrNavigateUri when you implement opening a web page.

.NET Framework Equivalent

System.Windows.Controls.HyperlinkButton.NavigateUri

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRHyperlinkButton