SettingsUnitsEditorControllerPostImportUnit - метод

Imports a settings unit available in the current session.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
C#
[HttpPostAttribute("units/import/{unitName}/{fragmentName?}")]
[SessionMethodAttribute(UserAccessLevel.Administrator, false, new string[] { ... })]
[DisableRequestSizeLimitAttribute]
[ConsumesAttribute("application/octet-stream", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult> PostImportUnit(
	[FromBodyAttribute] Stream file,
	[FromRouteAttribute] string unitName,
	[FromRouteAttribute] string? fragmentName,
	CancellationToken cancellationToken = default
)

Параметры

file  Stream
File object containing the settings unit to import.
unitName  String
The unique settings unit name.
fragmentName  String
The unique name of the settings fragment within the settings unit if specified.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskActionResult
File object containing the exported unit.

См. также