ISettingsUnitPluginPrepareForRemoveAsync - метод
A lifecycle hook invoked before a settings unit record is removed from persistent storage.
Пространство имён: Tessa.SettingsUnitsСборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
ValueTask PrepareForRemoveAsync(
SettingsUnitRecord record,
CancellationToken cancellationToken = default
)
Function PrepareForRemoveAsync (
record As SettingsUnitRecord,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
ValueTask PrepareForRemoveAsync(
SettingsUnitRecord^ record,
CancellationToken cancellationToken = CancellationToken()
)
abstract PrepareForRemoveAsync :
record : SettingsUnitRecord *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
- record SettingsUnitRecord
- The settings unit record being removed.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
ValueTaskProvides an awaitable result of an asynchronous operation.
Use this method to perform cleanup of dependent resources or to validate that the removal operation is permissible.