Skip to main content

Component Plug-In SDK 2026 R1

Method TrySaveAsync

Last update: 19.06.2026

Namespace: Phoenix.ComponentBuilderAPI
Assembly: Phoenix.ComponentBuilderAPI.dll

TrySaveAsync()

Tells the UI to save any current work. If there are no change, this function should return true immediately. If there are unsaved changes, the user should be prompted to save their work with (yes, no, cancel) options.

If the plug-in writer does not wish to have this protection, just return true and do nothing.

Task<bool> TrySaveAsync()

Returns

Task<bool>

True if the user picks yes or no, false if they choose to cancel.

Connect with Ansys