SettingsUnitsEditorControllerPostImportUnit - метод
Imports a settings unit available in the current session.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
[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
)
<HttpPostAttribute("units/import/{unitName}/{fragmentName?}")>
<SessionMethodAttribute(UserAccessLevel.Administrator, false, New String() { ... })>
<DisableRequestSizeLimitAttribute>
<ConsumesAttribute("application/octet-stream", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostImportUnit (
<FromBodyAttribute> file As Stream,
<FromRouteAttribute> unitName As String,
<FromRouteAttribute> fragmentName As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult)
public:
[HttpPostAttribute(L"units/import/{unitName}/{fragmentName?}")]
[SessionMethodAttribute(UserAccessLevel::Administrator, false, __gc new array<String^>^ { ... })]
[DisableRequestSizeLimitAttribute]
[ConsumesAttribute(L"application/octet-stream", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult^>^ PostImportUnit(
[FromBodyAttribute] Stream^ file,
[FromRouteAttribute] String^ unitName,
[FromRouteAttribute] String^ fragmentName,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("units/import/{unitName}/{fragmentName?}")>]
[<SessionMethodAttribute(UserAccessLevel.Administrator, false, new string[] { ... })>]
[<DisableRequestSizeLimitAttribute>]
[<ConsumesAttribute("application/octet-stream", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostImportUnit :
[<FromBodyAttribute>] file : Stream *
[<FromRouteAttribute>] unitName : string *
[<FromRouteAttribute>] fragmentName : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult>
- 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.
TaskActionResultFile object containing the exported unit.