Skip to main content

Component Plug-In SDK 2026 R1

Method SetIconAsync

Last update: 19.06.2026

Namespace: Phoenix.BuilderUIClient
Assembly: Phoenix.BuilderUIClient.dll

SetIconAsync(string)

Set a new icon by first copying the old icon into the extraction folder, and then setting the Icon property of the config.

public Task SetIconAsync(string filePath)

Parameters

filePath string

The absolute path to the new icon file.

Returns

Task

Task of the running operation.

Remarks

This method does not delete the old icon to give the user the opportunity to copy it elsewhere. Otherwise, it should be deleted when the extraction folder is cleaned up.

Connect with Ansys