Compartilhar via


IXRHyperlinkButton::GetTargetName (Compact 2013)

3/28/2014

This method retrieves the target window in which your custom code can display the web page.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetTargetName(
    BSTR* pbstrTargetName
) = 0;

Parameters

  • pbstrTargetName
    [out] Pointer to the target window in which the web page should open.

    The following table lists several target types for opening a web page.

    Target

    Description

    _blank

    Loads the web page into a new blank window.

    _parent

    Loads the web page into the parent window.

    _search

    Loads the web page into the browser search pane.

    _self

    Loads the page into the same window in which the link was clicked.

    _top

    Loads the web page into the topmost window.

    _media

    Loads the web page into the HTML content area of the Media Bar.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value of pbstrTargetName corresponds to the HTML TARGET attribute.

The web page is specified in IXRHyperlinkButton::SetNavigateUri.

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

.NET Framework Equivalent

System.Windows.Controls.HyperlinkButton.TargetName

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRHyperlinkButton