LocalizationControllerPostImportLibraries - метод
Import list of localization libraries. Method is available for administrators only.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPostAttribute("import")]
[DisableRequestSizeLimitAttribute]
[TypedJsonBodyAttribute]
[SessionMethodAttribute(UserAccessLevel.Administrator)]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(204)]
public Task<IActionResult> PostImportLibraries(
[FromBodyAttribute] List<PlainLocalizationLibrary> libraries,
[FromQueryAttribute] bool clear = false,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("import")>
<DisableRequestSizeLimitAttribute>
<TypedJsonBodyAttribute>
<SessionMethodAttribute(UserAccessLevel.Administrator)>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(204)>
Public Function PostImportLibraries (
<FromBodyAttribute> libraries As List(Of PlainLocalizationLibrary),
<FromQueryAttribute> Optional clear As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpPostAttribute(L"import")]
[DisableRequestSizeLimitAttribute]
[TypedJsonBodyAttribute]
[SessionMethodAttribute(UserAccessLevel::Administrator)]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(204)]
Task<IActionResult^>^ PostImportLibraries(
[FromBodyAttribute] List<PlainLocalizationLibrary^>^ libraries,
[FromQueryAttribute] bool clear = false,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("import")>]
[<DisableRequestSizeLimitAttribute>]
[<TypedJsonBodyAttribute>]
[<SessionMethodAttribute(UserAccessLevel.Administrator)>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(204)>]
member PostImportLibraries :
[<FromBodyAttribute>] libraries : List<PlainLocalizationLibrary> *
[<FromQueryAttribute>] ?clear : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _clear = defaultArg clear false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- libraries ListPlainLocalizationLibrary
- List of localization libraries.
- clear Boolean (Optional)
- Flag whether to delete all libraries prior to importing.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskIActionResult204 (No Content).