SettingsUnitsEditorControllerDeleteUnitRecords - метод
Removes a collection of existing settings unit records available for current session with specified category and names.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
[HttpDeleteAttribute("units/c/{category}")]
[ConsumesAttribute("application/json", new string[] { ... })]
[TypedJsonBodyAttribute]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult> DeleteUnitRecords(
[FromRouteAttribute] string category,
[FromBodyAttribute] List<string> unitNames,
CancellationToken cancellationToken = default
)
<HttpDeleteAttribute("units/c/{category}")>
<ConsumesAttribute("application/json", New String() { ... })>
<TypedJsonBodyAttribute>
<ProducesResponseTypeAttribute(204)>
Public Function DeleteUnitRecords (
<FromRouteAttribute> category As String,
<FromBodyAttribute> unitNames As List(Of String),
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult)
public:
[HttpDeleteAttribute(L"units/c/{category}")]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[TypedJsonBodyAttribute]
[ProducesResponseTypeAttribute(204)]
Task<ActionResult^>^ DeleteUnitRecords(
[FromRouteAttribute] String^ category,
[FromBodyAttribute] List<String^>^ unitNames,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpDeleteAttribute("units/c/{category}")>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<TypedJsonBodyAttribute>]
[<ProducesResponseTypeAttribute(204)>]
member DeleteUnitRecords :
[<FromRouteAttribute>] category : string *
[<FromBodyAttribute>] unitNames : List<string> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult>
- category String
- The URL-encoded category name of the settings units. See Name.
- unitNames ListString
- A collection of unique settings unit name inside category.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultStatus204NoContent if all
SettingsUnitRecord was successfully removed.