SchemeControllerDeleteMigration - метод
Delete migration. Returns true if migration has existed and was deleted.
Method is available for administrators only.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpDeleteAttribute("migrations/{id:guid}")]
[ProducesResponseTypeAttribute(200)]
public ValueTask<ActionResult<bool>> DeleteMigration(
[FromRouteAttribute] Guid id,
CancellationToken cancellationToken = default
)
<HttpDeleteAttribute("migrations/{id:guid}")>
<ProducesResponseTypeAttribute(200)>
Public Function DeleteMigration (
<FromRouteAttribute> id As Guid,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of ActionResult(Of Boolean))
public:
[HttpDeleteAttribute(L"migrations/{id:guid}")]
[ProducesResponseTypeAttribute(200)]
ValueTask<ActionResult<bool>^> DeleteMigration(
[FromRouteAttribute] Guid id,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpDeleteAttribute("migrations/{id:guid}")>]
[<ProducesResponseTypeAttribute(200)>]
member DeleteMigration :
[<FromRouteAttribute>] id : Guid *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ActionResult<bool>>
- id Guid
- Identifier of migration to delete.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
ValueTaskActionResultBooleantrue if migration has existed and was deleted;
false otherwise.