ISettingsUnitRepositoryDeleteAsync - метод

Permanently deletes a settings unit record by its unique identifier.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
C#
Task DeleteAsync(
	Guid id,
	bool cascade = true,
	CancellationToken cancellationToken = default
)

Параметры

id  Guid
The unique identifier of the settings unit to delete.
cascade  Boolean  (Optional)
If , the method deletes the record with the specified id along with any related records.
If , only the record with the specified id is deleted, leaving related records intact.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

Task
Represents an asynchronous operation.

Заметки

This method does not perform a permissions check. The caller is responsible for ensuring appropriate access.

Исключения

SettingsUnitNotFoundExceptionThrown if no record with the specified identifier exists.

См. также