AppWindow.SetIcon Method

Definition

Overloads

SetIcon(String)

Sets the icon for the window, using the specified icon path.

SetIcon(IconId)

Sets the icon for the window, using the specified icon ID.

SetIcon(String)

Sets the icon for the window, using the specified icon path.

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

Parameters

iconPath
String

The path of the icon.

Attributes

Applies to

SetIcon(IconId)

Sets the icon for the window, using the specified icon ID.

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

Parameters

iconId
IconId

The ID of the icon.

Attributes

Applies to