SettingsUnitsEditorControllerGetExportUnit - метод
Exports a settings unit available in the current session.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
[HttpGetAttribute("units/export/{unitName}/{fragmentName?}")]
[SessionMethodAttribute(UserAccessLevel.Administrator, false, new string[] { ... })]
[ProducesAttribute("application/octet-stream", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult> GetExportUnit(
[FromRouteAttribute] string unitName,
[FromRouteAttribute] string? fragmentName,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("units/export/{unitName}/{fragmentName?}")>
<SessionMethodAttribute(UserAccessLevel.Administrator, false, New String() { ... })>
<ProducesAttribute("application/octet-stream", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetExportUnit (
<FromRouteAttribute> unitName As String,
<FromRouteAttribute> fragmentName As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult)
public:
[HttpGetAttribute(L"units/export/{unitName}/{fragmentName?}")]
[SessionMethodAttribute(UserAccessLevel::Administrator, false, __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/octet-stream", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult^>^ GetExportUnit(
[FromRouteAttribute] String^ unitName,
[FromRouteAttribute] String^ fragmentName,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("units/export/{unitName}/{fragmentName?}")>]
[<SessionMethodAttribute(UserAccessLevel.Administrator, false, new string[] { ... })>]
[<ProducesAttribute("application/octet-stream", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetExportUnit :
[<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 if specified.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultFile object containing the exported unit.