Synced
IApplicationStorage.WriteAsync
Section titled “IApplicationStorage.WriteAsync”
- Atomically replaces a complete value.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Storage
Scope: Runtime
Declaration
Section titled “Declaration”System.Threading.Tasks.ValueTask InnoEngine.Storage.IApplicationStorage.WriteAsync(InnoEngine.Storage.StorageKey key, System.ReadOnlyMemory<byte> value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter key: The sandbox-relative storage key.
Parameter value: The complete value to commit.
Parameter cancellationToken: Cancellation requested by the caller.
Returns
Section titled “Returns”A task that completes after the value is durably replaced.