SettingsUnitsEditorControllerDeleteUnitRecord - метод
Removes existing settings unit record available for current session with specified name.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
[HttpDeleteAttribute("units/{unitName}/{fragmentName}")]
[ConsumesAttribute("application/json", new string[] { ... })]
[TypedJsonBodyAttribute]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult> DeleteUnitRecord(
[FromRouteAttribute] string unitName,
[FromRouteAttribute] string? fragmentName,
CancellationToken cancellationToken = default
)
<HttpDeleteAttribute("units/{unitName}/{fragmentName}")>
<ConsumesAttribute("application/json", New String() { ... })>
<TypedJsonBodyAttribute>
<ProducesResponseTypeAttribute(204)>
Public Function DeleteUnitRecord (
<FromRouteAttribute> unitName As String,
<FromRouteAttribute> fragmentName As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult)
public:
[HttpDeleteAttribute(L"units/{unitName}/{fragmentName}")]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[TypedJsonBodyAttribute]
[ProducesResponseTypeAttribute(204)]
Task<ActionResult^>^ DeleteUnitRecord(
[FromRouteAttribute] String^ unitName,
[FromRouteAttribute] String^ fragmentName,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpDeleteAttribute("units/{unitName}/{fragmentName}")>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<TypedJsonBodyAttribute>]
[<ProducesResponseTypeAttribute(204)>]
member DeleteUnitRecord :
[<FromRouteAttribute>] unitName : string *
[<FromRouteAttribute>] fragmentName : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult>
- unitName String
- The unique settings unit name.
- fragmentName String
- The unique name of the settings fragment within the settings unit.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultStatus204NoContent if
SettingsUnitRecord was successfully removed.