    

 ## On this page

  

 

 # Method TrySaveAsync

 Last update: 19.06.2026 

Namespace: [Phoenix.ComponentBuilderAPI](Phoenix.ComponentBuilderAPI.md)  
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.

```csharp
Task<bool> TrySaveAsync()


```

### Returns

[Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)&lt;[bool](https://learn.microsoft.com/dotnet/api/system.boolean)&gt;

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