Share via


AppWindow.SetTaskbarIcon Method

Definition

Overloads

SetTaskbarIcon(IconId)

Sets the icon for the taskbar using the specified icon ID.

SetTaskbarIcon(String)

Sets the icon for the taskbar using the specified icon path.

SetTaskbarIcon(IconId)

Sets the icon for the taskbar using the specified icon ID.

public:
 virtual void SetTaskbarIcon(IconId iconId) = SetTaskbarIcon;
/// [Windows.Foundation.Metadata.Overload("SetTaskbarIconWithIconId")]
void SetTaskbarIcon(IconId const& iconId);
[Windows.Foundation.Metadata.Overload("SetTaskbarIconWithIconId")]
public void SetTaskbarIcon(IconId iconId);
function setTaskbarIcon(iconId)
Public Sub SetTaskbarIcon (iconId As IconId)

Parameters

iconId
IconId

The ID of the icon.

Attributes

Remarks

For more information about setting the icon, see SetIcon. This method works the same way, but lets you set the taskbar icon independently of the title bar icon.

See also

Applies to

SetTaskbarIcon(String)

Sets the icon for the taskbar using the specified icon path.

public:
 virtual void SetTaskbarIcon(Platform::String ^ iconPath) = SetTaskbarIcon;
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("SetTaskbarIcon")]
void SetTaskbarIcon(winrt::hstring const& iconPath);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("SetTaskbarIcon")]
public void SetTaskbarIcon(string iconPath);
function setTaskbarIcon(iconPath)
Public Sub SetTaskbarIcon (iconPath As String)

Parameters

iconPath
String

Platform::String

winrt::hstring

The path of the icon.

Attributes

Remarks

For more information about setting the icon, see SetIcon. This method works the same way, but lets you set the taskbar icon independently of the title bar icon.

See also

Applies to