Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AppWindow.SetTaskbarIcon Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
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


Feedback

Was this page helpful?